You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The project I have been working on has a lot of background processes that we run to do various data manipulation and processing. Currently, we are running 8 different crons and have 6 different queue transports that we have dedicated consumers for.
My question is, how have others approached the problem of defining the cronjobs and queue worker deployments, and is there a recommended way?
I'll share what I've built in my system to make it a bit easier for us to define these deployments.
CronJob
We've created a CronJob template file that allows you to define your crons as an array in your values.yaml file like so:
Disclaimer: I am by no means an expert on Helm, and the charts I've added have gone through many different iterations and are probably not the ideal solution, but they have been working for me.
I was just curious what other solutions people have been using to solve these problems.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
The project I have been working on has a lot of background processes that we run to do various data manipulation and processing. Currently, we are running 8 different crons and have 6 different queue transports that we have dedicated consumers for.
My question is, how have others approached the problem of defining the cronjobs and queue worker deployments, and is there a recommended way?
I'll share what I've built in my system to make it a bit easier for us to define these deployments.
CronJob
We've created a CronJob template file that allows you to define your crons as an array in your
values.yaml
file like so:templates/cron.yaml
Queue Workers
We've created a Deployment template that allows you to define your queue workers in an array in your
values.yaml
file like so:templates/worker.yaml
Disclaimer: I am by no means an expert on Helm, and the charts I've added have gone through many different iterations and are probably not the ideal solution, but they have been working for me.
I was just curious what other solutions people have been using to solve these problems.
Beta Was this translation helpful? Give feedback.
All reactions