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

How to modify the retried function's parameter between each backoff call? #14

Closed
johnib opened this issue Aug 5, 2016 · 2 comments
Closed

Comments

@johnib
Copy link

johnib commented Aug 5, 2016

Hello,

I have a function that ingests records to some stream.
The stream may succeed although accepted only a strict subset of the records list.
I would like to modify the records list before it is processed again by the backoff mechanism (when using the on_predicat decorator).
In particular, I would like to filter the records that were not accepted and have them processed again.

How would I do that?

@bgreen-litl
Copy link
Member

Off the top of my head, it sounds like you'd want to refactor such that the decorated function is being called with an immutable parameter that either succeeds or fails. However, I'm not sure I understand the problem as stated. Some example code might help.

@bgreen-litl
Copy link
Member

I'm closing this, but please reopen if you think your use case isn't addressed. In that case, example code would be great.

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

No branches or pull requests

2 participants