taskiq-faststream icon indicating copy to clipboard operation
taskiq-faststream copied to clipboard

In process scheduler

Open theobouwman opened this issue 4 months ago • 3 comments

Is it possible to start the taskiq scheduler when the fast stream app starts? Like in the same program such that it is not needed to run 2 instances (scheduler and worker)?

theobouwman avatar Sep 10 '25 22:09 theobouwman

@Lancetnik is this possible?

theobouwman avatar Nov 02 '25 17:11 theobouwman

@theobouwman everything is possible - it's programming. But I don't know how - I didn't use taskiq. Please, check their documentation for an ability to start scheduler from the code

Lancetnik avatar Nov 02 '25 18:11 Lancetnik

As far as I know, there’s currently no convenient way to run the scheduler and the worker at the same time. This is mainly because the worker and scheduler can only be started from the CLI using two different commands: taskiq worker and taskiq scheduler. There’s also no proper interface to run them directly from code.

Additionally, it’s generally not recommended to run the scheduler together with the worker, since you should have only one instance of the scheduler but potentially multiple workers.

danfimov avatar Nov 05 '25 10:11 danfimov