Skip to content

Commit

Permalink
changed timeout to 5 minutes
Browse files Browse the repository at this point in the history
  • Loading branch information
hemant10yadav committed Nov 28, 2024
1 parent 1ae5ce2 commit 48ead78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion commcare_connect/opportunity/visit_import.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ def _bulk_update_payments(opportunity: Opportunity, imported_data: Dataset) -> P
seen_users = set()
payment_ids = []
lock_key = f"bulk_update_payments_opportunity_{opportunity.id}"
with cache.lock(lock_key, timeout=60):
with cache.lock(lock_key, timeout=300):
with transaction.atomic():
usernames = list(payments)
users = OpportunityAccess.objects.filter(
Expand Down

0 comments on commit 48ead78

Please sign in to comment.