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 job metadata store #70

Closed robacarp closed 2 years ago

robacarp commented 3 years ago

Currently Job.config is a bespoke implementation used only for the throttling logic, which is a leak in the Job abstraction. In order to move the throttling logic into it's own layer Jobs needd a general purpose metadata hash which is accessible in a before_run hook (#69).