Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add callback for retry exhaustion #630

Merged
merged 1 commit into from
Sep 9, 2024

Conversation

dbowring
Copy link
Contributor

@dbowring dbowring commented Jun 12, 2024

E.g.,

@dramatiq.actor
def on_abandon_flaky_work(message_data, retry_info):
    logger.info("Too flaky, will not retry", message_data=message_data, retry_info=retry_info)

@dramatiq.actor(max_retries=5, on_retry_exhausted=on_abandon_flaky_work.actor_name)
def my_flaky_actor(*args, **kwargs):
    do_flaky_work(*args, **kwargs)

@dbowring
Copy link
Contributor Author

dbowring commented Sep 8, 2024

@Bogdanp Is there any chance of this (or something like this) being merged?

@Bogdanp Bogdanp merged commit f592ca7 into Bogdanp:master Sep 9, 2024
@Bogdanp
Copy link
Owner

Bogdanp commented Sep 9, 2024

Sorry for the delay, this slipped under my radar. Thanks!

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.

2 participants