Skip to content

Commit

Permalink
small sleep before patching deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
dsavchenko committed Nov 17, 2023
1 parent 305c3cc commit 613838d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion nb2workflow/deploy.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 613838d

Please sign in to comment.