Skip to content

Adding max_retries for ECSOperator #13725

Answered by potiuk
markhopson asked this question in Ideas
Discussion options

You must be logged in to vote

Sure. Go for it. We have similar retry mechanisms implemented in 'google" provider.

This is especially useful if you have a way to distinguish the "capacity" (transient) error from any other "permanent" one):

See here for example (this is "quota_retry" but there are few others):

def quota_retry(*args, **kwargs) -> Callable:

We used tenacity to provide a capability of exponential back-off for such retries and we recommend the same approach - this way you are even better in handling "big" spikes.

We implemented it as decorators, so it could be applied to a wide range of Google Operators (and s…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by potiuk
Comment options

You must be logged in to vote
2 replies
@potiuk
Comment options

potiuk Jan 17, 2021
Collaborator

@markhopson
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
None yet
2 participants