fix: make retry policy match deluge node for agent client

This commit is contained in:
gmega 2025-01-27 20:19:23 -03:00
parent 34a179b110
commit 32d623f5bd
No known key found for this signature in database
GPG Key ID: 6290D34EAD824B18

View File

@ -22,8 +22,8 @@ class DelugeAgentClient(ExperimentComponent):
def generate(self, size: int, seed: int, name: str) -> Torrent:
@retry(
stop=stop_after_attempt(5),
wait=wait_exponential(multiplier=1, min=4, max=16),
stop=stop_after_attempt(10),
wait=wait_exponential(exp_base=2, min=4, max=16),
)
def _request():
return requests.post(