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: retry task__update_share on connection errors #10788

Open
wants to merge 1 commit into
base: feature/insti-dash-improv
Choose a base branch
from
Open
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
2 changes: 2 additions & 0 deletions api/share/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import logging
import random
from urllib.parse import urljoin
import urllib3.exceptions
import uuid

from celery.exceptions import Retry
Expand Down Expand Up @@ -79,6 +80,7 @@ def _enqueue_update_share(osfresource):
acks_late=True,
max_retries=4,
retry_backoff=True,
autoretry_for=(urllib3.exceptions.HTTPError,),
)
def task__update_share(self, guid: str, is_backfill=False, osfmap_partition_name='MAIN'):
"""
Expand Down
Loading