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 2020/07/15 06:53:33 UTC
[GitHub] [airflow] potiuk commented on a change in pull request #9631: Add function to get current context
potiuk commented on a change in pull request #9631:
URL: https://github.com/apache/airflow/pull/9631#discussion_r454831166
##########
File path: airflow/models/taskinstance.py
##########
@@ -1132,7 +1133,8 @@ def signal_handler(signum, frame): # pylint: disable=unused-argument
self._run_execute_callback(context, task)
# Execute the task
- result = self._execute_task(context, task_copy)
+ with set_current_context(context):
Review comment:
Agree. functional dag module is better for that.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org