cashapp / misk

Microservice Kontainer
https://cashapp.github.io/misk/
391 stars 166 forks source link

Distribute cron tasks #3326

Open tgregory-block opened 1 week ago

tgregory-block commented 1 week ago

Currently Cron tasks are governed by a single lease, so all tasks are executed on whichever pod takes that lease. This change adds a new CronLeaseBehavior parameter to CronModule, making it possible to take out a lease per-cron-task and distribute the tasks across the deployment. The default behavior remains to take out a single lease