Hi, Thank Alexander Komarov for the retry bit, we tried it on our end to secure the jnlp connexion. The retry in itself seem to work great, but since we implemented it, our containers are not stopped properly on jobs end : The kill -15 sent on job termination is not interpreted by the container, and we have to wait 10 sec for the kill -9 to really put an end to the container. This is problematic because we have a small window where the master believe the container (and the agent related) is free to use. It could then try to start a job in it, with no chance to last long. What I could figure out is that since the entrypoint is the new script, when the $ACTUAL_ENTRYPOINT is run, it is not the PID1. When the kill -15 occur, not every process are killed, so the container stays alive. I tried to add the exec command before runnning the $ACTUAL_ENTRYPOINT, it resolve the issue of the sigterm interpretation, but we loose the retry logic... I'm still trying to figure out a solution to torward properly sigterms and keep the retry. |