Skip to content

Commit

Permalink
Add Stacktrace when DagFileProcessorManager gets killed (apache#10681)
Browse files Browse the repository at this point in the history
  • Loading branch information
msumit authored Sep 3, 2020
1 parent 57fd479 commit faaf179
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions airflow/utils/dag_processing.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"""Processes DAGs."""
import enum
import importlib
import inspect
import logging
import multiprocessing
import os
Expand Down Expand Up @@ -633,6 +634,7 @@ def _exit_gracefully(self, signum, frame): # pylint: disable=unused-argument
Helper method to clean up DAG file processors to avoid leaving orphan processes.
"""
self.log.info("Exiting gracefully upon receiving signal %s", signum)
self.log.debug("Current Stacktrace is: %s", '\n'.join(map(str, inspect.stack())))
self.terminate()
self.end()
self.log.debug("Finished terminating DAG processors.")
Expand Down

0 comments on commit faaf179

Please sign in to comment.