aws / amazon-mwaa-docker-images

Apache License 2.0
24 stars 11 forks source link

Add a quality check to ensure signal.signal is only used in one place #111

Open rafidka opened 2 months ago

rafidka commented 2 months ago

Overview

The Python's method signal.signal can only be used to assign one signal handler, and if you call it again, it will remove the previous handler. Considering our reliance on this method in the subprocess module to handle SIGTERMs and gracefully shutdown processes, we need to make sure it is not accidentally called somewhere else, as that will break our logic.

Acceptance Criteria

Additional Info

N/A