diff --git a/commcare_connect/opportunity/visit_import.py b/commcare_connect/opportunity/visit_import.py index 9857e552..f18ae559 100644 --- a/commcare_connect/opportunity/visit_import.py +++ b/commcare_connect/opportunity/visit_import.py @@ -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(