You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2022/02/15 13:21:03 UTC

[GitHub] [airflow] potiuk commented on a change in pull request #20731: Truncate stack trace to DAG user code for exceptions raised during execution

potiuk commented on a change in pull request #20731:
URL: https://github.com/apache/airflow/pull/20731#discussion_r806823084



##########
File path: airflow/models/taskinstance.py
##########
@@ -1438,7 +1443,18 @@ def _execute_task_with_callbacks(self, context):
         """Prepare Task for Execution"""
         from airflow.models.renderedtifields import RenderedTaskInstanceFields
 
+        parent_pid = os.getpid()
+
         def signal_handler(signum, frame):
+            pid = os.getpid()

Review comment:
       Nice one.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org