From 768758b462ce54682a56566e85c344fa1c81ea07 Mon Sep 17 00:00:00 2001 From: Greg Finley Date: Wed, 10 Apr 2024 22:23:40 -0700 Subject: [PATCH] Try autocommit --- queue_files/main.py | 1 + 1 file changed, 1 insertion(+) diff --git a/queue_files/main.py b/queue_files/main.py index bcb3ec6..66e3646 100644 --- a/queue_files/main.py +++ b/queue_files/main.py @@ -19,6 +19,7 @@ def run(event, context): "SELECT dropbox_cursor from dropbox_cursors order by created_at desc limit 1" ) conn = psycopg.connect(os.environ["NEON_DATABASE_URL"]) + conn.autocommit = True with conn.cursor() as cursor: cursor.execute(query) old_cursor = cursor.fetchone()[0]