tenacity icon indicating copy to clipboard operation
tenacity copied to clipboard

Disable when developing?

Open Mathieson opened this issue 1 year ago • 2 comments

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.

Mathieson avatar Jun 05 '24 22:06 Mathieson

@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 🤔

notypecheck avatar Jun 13 '24 13:06 notypecheck

having callable parameter would be really nice addition.

@Mathieson what approach you are using?

pySilver avatar Jul 31 '24 00:07 pySilver