sematic-ai / sematic

An open-source ML pipeline development platform
Other
975 stars 59 forks source link

Forward signals from entrypoint script for custom docker builds #1111

Open augray opened 11 months ago

augray commented 11 months ago

When a docker image is built using the docker builder, it uses an entrypoint bash script defined here. If the k8s pod this is running in receives a signal (ex: SIGTERM), the entrypoint.sh process will receive the signal, but the python interpreter it spawned will not. We should change that so that the script forwards the signal, and exits with the exit code of its child.