From 683e06b77cb569265555c962f9eaa2c5a251001c Mon Sep 17 00:00:00 2001 From: Mike Fiedler Date: Mon, 8 Jul 2024 15:34:26 -0400 Subject: [PATCH] chore: increase migration timeouts 4 seconds wasn't long enough to get the lock on `projects`. Refs: #16179 Signed-off-by: Mike Fiedler --- .../versions/14ad61e054cf_add_project_lifecycle_status.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/warehouse/migrations/versions/14ad61e054cf_add_project_lifecycle_status.py b/warehouse/migrations/versions/14ad61e054cf_add_project_lifecycle_status.py index 5a127938f9d6..e9c45668beb7 100644 --- a/warehouse/migrations/versions/14ad61e054cf_add_project_lifecycle_status.py +++ b/warehouse/migrations/versions/14ad61e054cf_add_project_lifecycle_status.py @@ -27,8 +27,8 @@ def upgrade(): - op.execute("SET statement_timeout = 5000") - op.execute("SET lock_timeout = 4000") + op.execute("SET statement_timeout = 11000") + op.execute("SET lock_timeout = 10000") sa.Enum("quarantine-enter", "quarantine-exit", name="lifecyclestatus").create( op.get_bind()