-
I run the messenger worker in Google Cloud Run Jobs which is a serverless environnement. To reduce usages (and costs!), I'm thinking about to scale to 0 the worker when idle. The solution could be to schedule the worker every 1 hour and make it able to stop itself if it's idle for 30 seconds. Thus, if you have a few messages to process, the worker would work 24 * some minutes a day instead to have to work full time a day (24 * 1h). |
Beta Was this translation helpful? Give feedback.
Answered by
lyrixx
Mar 7, 2024
Replies: 1 comment 4 replies
-
friendly ping @lyrixx, do you have an idea? |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You save the date of the last message (by listeneing on message handled or message failure), and worker idle you take a decision
Take this listener as example