Skip to content

Added on_death callback#99

Open
kylerippey wants to merge 3 commits into
breamware:masterfrom
kylerippey:add-death-callback
Open

Added on_death callback#99
kylerippey wants to merge 3 commits into
breamware:masterfrom
kylerippey:add-death-callback

Conversation

@kylerippey
Copy link
Copy Markdown

I took a swing at adding the on_death callback. I haven't actually used this functionality in Sidekiq Pro, but I tried to implement the behavior exactly how the documents describe it. This callback should happen only once when the first job in the batch fully dies (exhausts all retries). It will not get called for every job in the batch that dies.

I've been running this branch in production since yesterday and seeing it behave the way I expect. Please let me know if you want me to adjust implementation, add more specs, etc!

Thank you!

Resolves #51

@Overload119
Copy link
Copy Markdown

@nglx Can you take a look at this? Would love to get this merged in, it just bit us.

@kylerippey
Copy link
Copy Markdown
Author

For what it's worth, I've been running this fork in production for over a month now and it's been working pretty well.

I'm very open to any feedback and suggestions that could help get it merged!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add support for on_death callback

2 participants