mirror of
https://github.com/GSA/notifications-api.git
synced 2026-09-06 22:58:25 -04:00
Implement worker_abort server hook
Also update the manifest command to pass the config file in as a parameter and modify the logs agent to start shipping the error log to cloudwatch
This commit is contained in:
5
gunicorn_config.py
Normal file
5
gunicorn_config.py
Normal file
@@ -0,0 +1,5 @@
|
||||
def worker_abort(worker):
|
||||
worker.log.info("worker received ABORT")
|
||||
import sys, traceback
|
||||
for threadId, stack in sys._current_frames().items():
|
||||
worker.log.info(''.join(traceback.format_stack(stack)))
|
||||
Reference in New Issue
Block a user