Skip to content

Commit

Permalink
timeout to 10 mins
Browse files Browse the repository at this point in the history
  • Loading branch information
hemant10yadav committed Dec 9, 2024
1 parent 48ead78 commit 194c1aa
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=300):
with cache.lock(lock_key, timeout=600):
with transaction.atomic():
usernames = list(payments)
users = OpportunityAccess.objects.filter(
Expand Down

0 comments on commit 194c1aa

Please sign in to comment.