Skip to content
Snippets Groups Projects
Commit a478eb08 authored by Valentin Rigal's avatar Valentin Rigal
Browse files

Remove polling waiting for the container to be available

parent def994d1
No related branches found
No related tags found
No related merge requests found
This commit is part of merge request !2227. Comments created here will be created in the context of that merge request.
......@@ -115,9 +115,7 @@ def run_docker_task(client, task, temp_dir):
if task.command is not None:
kwargs["command"] = task.command
container = client.containers.run(task.image, **kwargs)
# Wait for
while container.status == "created":
sleep(TASK_DOCKER_POLLING)
container.reload()
if container.status != "running":
raise Exception("Container was not updated to state running")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment