From 95f085fc0d1b390d9d069c99d0fcff885f2d0113 Mon Sep 17 00:00:00 2001 From: Rafael Bradley Date: Wed, 19 Mar 2025 19:57:41 -0300 Subject: [PATCH] feat(scripts): :bug: Wait longer to apply migrations. Waiting too few may result in the image not having finished being pulled, therefore the migrations not being applied since the old pod is still running. --- scripts/deploy.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/deploy.py b/scripts/deploy.py index e304b75..ce29fe3 100644 --- a/scripts/deploy.py +++ b/scripts/deploy.py @@ -36,9 +36,9 @@ microk8s kubectl set image pod/tasks \ """ ) -print("Waiting 15 seconds to run migrations...") +print("Waiting 30 seconds to run migrations...") -time.sleep(15) +time.sleep(30) with open("./k8s/bot.yml", encoding="utf-8") as stream: try: