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

Disable when developing? #467

Open
Mathieson opened this issue Jun 5, 2024 · 2 comments
Open

Disable when developing? #467

Mathieson opened this issue Jun 5, 2024 · 2 comments

Comments

@Mathieson
Copy link

Is there any way to disable retries when I'm actively developing? We want Tenacity to catch everything when deployed to production, but I want to know immediately if something is broken when working and making changes. Tenacity catches and retries, though, prolonging the feedback loop.

I thought there might be an environment variable or something that would allow me to disable things, but I didn't see anything mentioned in the docs and so I thought I would ask here.

@ThirVondukr
Copy link

@Mathieson Depending on how you're using the library you could create all instances of Retrying/AsyncRetrying using your custom function, but monkey patching is also an option 🤔

@pySilver
Copy link

having callable parameter would be really nice addition.

@Mathieson what approach you are using?

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

3 participants