restart containers if they are running for more than 15 minutes (900 seconds)
This commit is contained in:
@ -53,6 +53,7 @@ class DockerClient
|
||||
local_workspace_path = generate_local_workspace_path
|
||||
FileUtils.mkdir(local_workspace_path)
|
||||
container.start(container_start_options(execution_environment, local_workspace_path))
|
||||
container.start_time = Time.now
|
||||
container
|
||||
rescue Docker::Error::NotFoundError => error
|
||||
destroy_container(container)
|
||||
|
Reference in New Issue
Block a user