From 613838d45be0626042087ac929b647194708a994 Mon Sep 17 00:00:00 2001 From: Denys SAVCHENKO Date: Fri, 17 Nov 2023 16:02:13 +0100 Subject: [PATCH] small sleep before patching deployment --- nb2workflow/deploy.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nb2workflow/deploy.py b/nb2workflow/deploy.py index 662ae72a..dca40ac1 100644 --- a/nb2workflow/deploy.py +++ b/nb2workflow/deploy.py @@ -406,7 +406,8 @@ def deploy_k8s(container_info, "--port", "8000", "-n", namespace] ) - finally: + finally: + time.sleep(5) # avoid race condition. time for deployment to be created in k8s sp.check_call( ["kubectl", "patch", "deployment", deployment_name, "-n", namespace, "--type", "strategic",