Commit 677002e5 authored by José Henrique's avatar José Henrique
Browse files

Increase sleep before killing containers

parent 4cc87aff
Pipeline #45265 passed with stage
in 32 minutes and 12 seconds
......@@ -26,17 +26,9 @@ def kill_container(container_name):
pass
def is_container_running(container_name):
for container in docker_client.containers.list():
if container.name == container_name:
return True
return False
def wait_and_kill_container(container_name):
time.sleep(15)
if is_container_running(container_name):
kill_container(container_name)
time.sleep(30)
kill_container(container_name)
def kill_process(pid):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment