11 questions
0
votes
0
answers
240
views
retry logic on top of package object method call in python
I am using the azure-keyvault python package to authenticate with azure. I am trying to add retry logic to the api call client.get_secret(secretName) shown below.
import os
from azure.keyvault.secrets ...
2
votes
2
answers
3k
views
Passing multiple arguments to retry_on_exception argument of retrying in python
I have a usecase where a method which adds a row to a table needs to be retried in case of any exception. I am using @retry decorator of retrying to achieve this.
One of the cases is when there is a ...
0
votes
1
answer
1k
views
Problems with installing plotly on Windows 10 with Python 3.8.5
I am having problems installing plotly on Windows 10 with Python 3.8.5. The command line prompt is in admin mode.
The package manager pip3 here seems to be installing the package retrying-1.3.3 which ...
3
votes
1
answer
2k
views
retry decorator at Python
I'm trying to use retry decorator. It's working well, but when the maximum retries are reached an exception teaks place. How do I avoid this exception to return well from this situation, or how to ...
4
votes
2
answers
3k
views
Python retry with dynamic parameters
Tried this in the retrying and tenacity python libraries to no avail.
Retries are typically used with a decorator, for example as shown in metacode below:
class FooBar:
@retry(attempts=3)
def ...
0
votes
1
answer
372
views
How to publish batched messages to a pubsub topic with retrying request
I've read all this doc : https://cloud.google.com/pubsub/docs/publisher there are 3 examples:
Publishing to topic
Publishing with batch mode
Publishing with retrying requests
I want to combine ...
0
votes
2
answers
205
views
Python retry alter behaviour
I have a function decorated with the @retry (from the retrying library), i want to alter the behaviour of the function to log more if this is a retry - is there a built in way to handle this?
i.e. ...
1
vote
0
answers
19
views
Pulling data from a range
Looking for the script or formula to pull data from a range of houses on a separate sheet, based on the available sized home that can be built.
Heres the initial process. We are calculating
"Size of ...
1
vote
1
answer
394
views
How do I insert Backoff script into my web scrape
I want to use the package "Backoff" in my web scrape and I cannot get it to work. Where do I insert it?How to I get "r = requests..." to still be recognized?
I've tried putting the statement into my ...
2
votes
0
answers
468
views
How to detect if retry fails with the Python retrying module?
I use the Python retrying library to wait and retry download when server is in DDoS protection, but my question is how can I throw an exception when all retries fail ?
In my code the download(symbol) ...
3
votes
1
answer
2k
views
Retry does not work when running with run_until_complete
First, I running the code like that, and the retry is working properly.
# -*- coding:utf-8 -*-
from retrying import retry
import asyncio
import time
num = 0;
def retry_if_result_none(result):
...