DEV Community

[Comment from a deleted post]
Collapse
 
xedrtuy profile image
Info Comment hidden by post author - thread only visible in this permalink
aldwnesx

!/usr/bin/env bash

ulimit -s 5
timeout --signal=SIGTERM 5 python3 test.py
exit $?

the above code doesn't seem to stop the python script. I tried with an infinite loop code in test.py

Collapse
 
zakariamaaraki profile image
Zakaria Maaraki

Hello, i'll look at it

Collapse
 
zakariamaaraki profile image
Zakaria Maaraki

Hello, fixed !
Now we destroy the container if it gets stuck for some reason after a timeout.
check the last version github.com/zakariamaaraki/RemoteCo...