Skip to content

Should I run taskiq worker and scheduler as Kubernetes jobs? #260

Answered by s3rius
devraj asked this question in Q&A
Discussion options

You must be logged in to vote

No, run them as usual deployments. Because you might want to scale up number of workers. There's only one constraint on schedulers, there should be only one instance running (per schedule source, actually). But this constraint can be achieved by setting number of replicas to one.

Personally I use helm charts for my applications and both taskiq workers and schedulers are declared using the same deployment template, but with different command.

Also, declaring them as deployments allows you to specify really fancy scaling policy using keda.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@devraj
Comment options

Answer selected by devraj
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants