In process scheduler
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)?
@Lancetnik is this possible?
@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
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.