Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Execution time limit doesn't work as expected #27

Open
dtuantran opened this issue Oct 5, 2023 · 0 comments
Open

Execution time limit doesn't work as expected #27

dtuantran opened this issue Oct 5, 2023 · 0 comments

Comments

@dtuantran
Copy link

'--stop-timeout={}'.format(execution_time_limit),

The way we implement execution_time_limit in docker command doesn't work as we expected. This option doesn't stop the container after this limit time.
Here is Docker documentation : https://docs.docker.com/engine/reference/commandline/run/#stop-timeout

"The --stop-timeout flag sets the number of seconds to wait for the container to stop after sending the pre-defined (see --stop-signal) system call signal. If the container does not exit after the timeout elapses, it's forcibly killed with a SIGKILL signal.

If you set --stop-timeout to -1, no timeout is applied, and the daemon waits indefinitely for the container to exit.

The Daemon determines the default, and is 10 seconds for Linux containers, and 30 seconds for Windows containers."

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant