feat(scripts): 🐛 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.
This commit is contained in:
+2
-2
@@ -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:
|
with open("./k8s/bot.yml", encoding="utf-8") as stream:
|
||||||
try:
|
try:
|
||||||
|
|||||||
Reference in New Issue
Block a user