Skip to content

Commit

Permalink
Fix: use project.created_at as lock id instead
Browse files Browse the repository at this point in the history
  • Loading branch information
faebebin committed Aug 29, 2023
1 parent e8f4f8b commit 13210cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docker-app/qfieldcloud/core/utils2/jobs.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def apply_deltas(
if not project.owner_can_create_job:
return []

with advisory_lock(project.id):
with advisory_lock(int(project.created_at.timestamp())):
# Ensure there is no concurrent request trying to apply these deltas.
# This block of code can only run one at a time per project.
#
Expand Down

0 comments on commit 13210cc

Please sign in to comment.