Skip to content

Add callback for retry exhaustion#630

Merged
Bogdanp merged 1 commit intoBogdanp:masterfrom
spaceduck-com:on-retry-exhausted
Sep 9, 2024
Merged

Add callback for retry exhaustion#630
Bogdanp merged 1 commit intoBogdanp:masterfrom
spaceduck-com:on-retry-exhausted

Conversation

@dbowring
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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