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

Moves Job retry logic into Job where it can be overridden. #73

Closed robacarp closed 2 years ago

robacarp commented 2 years ago

fixes #59

This is not strictly part of my push for v2, but it was a small pull request for a feature I've needed a time or two.

I considered moving all of the retry logic to the metaclass since I have a feeling it will be nearly universally constant, but it isn't difficult to imagine scenarios where the response to those questions should be dynamic.