Closed aldwnesx closed 2 years ago
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
this script is working for me with an infinite loop, can you provide your test.py file please ?
Hello, fixed ! Now we destroy the container if it gets stuck for some reason after a timeout.
!/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