Function
sigterm_handler
(signum=None, frame=None)
Source from the content-addressed store, hash-verified
| 41 | |
| 42 | def setup_sigterm_handler(engine): |
| 43 | def sigterm_handler(signum=None, frame=None): |
| 44 | # This will cause SystemExit to be throw and allow for component cleanup. |
| 45 | engine.kill() |
| 46 | |
| 47 | # Register a SIGTERM signal handler which calls sys.exit which causes SystemExit to |
| 48 | # be thrown. We catch SystemExit and handle cleanup there. |
Callers
nothing calls this directly
Tested by
no test coverage detected