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

fix(http/buckets.py): increasing retry time on delete_ids #133

Merged
merged 1 commit into from
Oct 18, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions workflow/http/buckets.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from requests.models import Response
from tenacity import retry
from tenacity.stop import stop_after_delay
from tenacity.wait import wait_random
from tenacity.wait import wait_fixed, wait_random

from workflow.http.client import Client
from workflow.utils.logger import get_logger
Expand Down Expand Up @@ -123,7 +123,7 @@ def update(self, works: List[Dict[str, Any]]) -> bool:
response.raise_for_status()
return response.json()

@retry(wait=wait_random(min=0.1, max=2), stop=(stop_after_delay(30)))
@retry(wait=wait_fixed(30), stop=(stop_after_delay(30)))
def delete_ids(self, ids: List[str]) -> bool:
"""Delete works from the buckets backend with the given ids.

Expand Down
Loading