fly-apps / cron-manager

Apache License 2.0
31 stars 1 forks source link

Graceful shutdowns #2

Closed davissp14 closed 7 months ago

davissp14 commented 7 months ago

When a SIGINT is triggered, which is what Fly sends on restart, deploy, etc. Prevent new Jobs from being processed and wait for existing jobs to finish.

davissp14 commented 7 months ago

Once a SIGINT is received, new cron triggers will not be accepted. The graceful shutdown process will wait up to 30 seconds for any active jobs to complete before shutting down.