From 1992adb1acc4bdc78ab370652ffcc6033c633169 Mon Sep 17 00:00:00 2001 From: Nathan Freeman Date: Tue, 14 May 2024 11:42:21 -0500 Subject: [PATCH] Fix pipeline lock updating on acquire --- src/api/src/backend/views/PipelineLocks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/src/backend/views/PipelineLocks.py b/src/api/src/backend/views/PipelineLocks.py index 86554aa2..4cf245af 100644 --- a/src/api/src/backend/views/PipelineLocks.py +++ b/src/api/src/backend/views/PipelineLocks.py @@ -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)}'"