Skip to content

Commit

Permalink
Fix pipeline lock updating on acquire
Browse files Browse the repository at this point in the history
  • Loading branch information
nathandf committed May 14, 2024
1 parent 3f61c32 commit 1992adb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/src/backend/views/PipelineLocks.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def post(self, request, group_id, pipeline_id):
# pipeline lock's 'acquired_at' property
if str(pipeline_lock.pipeline_run.uuid) == str(competing_runs[0].uuid):
acquired_at = timezone.now()
pipeline_lock.object.update(acquired_at=acquired_at)
pipeline_lock.objects.update(acquired_at=acquired_at)

# Set the message for the pipeline lock acquisition attempt
message = f"Lock not acquired. Locks ahead of '{str(pipeline_lock.uuid)}'"
Expand Down

0 comments on commit 1992adb

Please sign in to comment.