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]