Hello, I’m building an application that runs some tasks in a cron job every 10 minutes, the important question is if I use Galaxy and create 2 containers that task will be run in both instances, how can I avoid that from happening?
Help is appreciated
1 Like
Check for job/task queue manager for node.
1 Like
Hi @rcastellanos!
Have you checked this doc: Background jobs | Galaxy Docs ?
I hope this can help you!
Regards
Use redis with bullmq and implement a simple redlock algorithm (cf. https://redis.io/docs/manual/patterns/distributed-locks/)
Edit: Actually it should be enough to use bullmq’s repeatable jobs