mosquito-cr / mosquito

A background task runner for crystal applications supporting periodic (CRON) and manually queued jobs
MIT License
227 stars 24 forks source link

Provide a way for interrupts to be received and drain the running queue safely #21

Closed robacarp closed 2 years ago

robacarp commented 6 years ago

It would be useful to provide a #stop method on the runner which allows it to finish any running tasks but not start any new, which would allow it to safely shut down without leaving any tasks suspended mid-execution.