Skip to content

Commit a7aed37

Browse files
fix lock reference
1 parent a328b7c commit a7aed37

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

guardrails_api/clients/postgres_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ def initialize(self, app: FastAPI):
9494
if lock_acquired:
9595
self.run_initialization(connection)
9696
# Release the lock after initialization is complete
97-
connection.execute(text("SELECT pg_advisory_unlock(12345);"))
97+
connection.execute(text(f"SELECT pg_advisory_unlock({lock_id});"))
9898

9999
def run_initialization(self, connection):
100100
# Perform the actual initialization tasks

0 commit comments

Comments
 (0)