edgurgel / verk

A job processing system that just verks! 🧛‍
https://hex.pm/packages/verk
MIT License
721 stars 65 forks source link

Event for dead job #171

Open tinenbruno opened 5 years ago

tinenbruno commented 5 years ago

Hello!

In some cases, I would want to run an action when a job goes to the Dead queue. I saw that there are some events for jobs already, like job failure. Would it be desirable to have a dead event?

Another use case might be when a user wants to run some action after a set number of retries. The map passed to the job failure event does not have this info.

edgurgel commented 5 years ago

In some cases, I would want to run an action when a job goes to the Dead queue. I saw that there are some events for jobs already, like job failure. Would it be desirable to have a dead event?

That would be a great addition 👍

Another use case might be when a user wants to run some action after a set number of retries. The map passed to the job failure event does not have this info.

I think the job should have the retry_count

Psli commented 4 years ago

+1