I am using Glue v3.0 (Python 3.7).
The goal is to stop the Glue PySpark job gracefully so that it can terminate properly and clean its custom resources before ending.
I tried to catch the stop/abort/kill signal, using the classical signal.signal() method with its handler.
However, it doesn't seem to work with the signals specified in the python signal's documentation (the handler never get called).
Any idea of how I can stop the job gracefully, using signal method or not ?