Job Updates
grippy opened this issue · 2 comments
grippy commented
Just started using this package and I have a use-case that isn't currently covered.
The existing code assumes all successful jobs returned from a handler should be deleted. However, I would like to modify the job (eta, priority, etc) and have it updated in the DB. See code here.
The change looks straight-forward:
- Add a new struct
Job
flag which tells the worker how to proceed with the Job. The default behavior should delete the job for backwards compatibility.
I'm more than willing to work on a PR for this functionality. Just wanted to run this by you before doing any work.
Thanks!
grippy commented
This feature was added to this fork: gadelkareem#1