TJaniF commented on code in PR #38902:
URL: https://github.com/apache/airflow/pull/38902#discussion_r1560866337


##########
airflow/models/taskinstance.py:
##########
@@ -2715,29 +2727,26 @@ def signal_handler(signum, frame):
 
             # Execute the task
             with set_current_context(context):
-                result = self._execute_task(context, task_orig)
+                result, rendered_map_index = self._execute_task(context, 
task_orig, jinja_env=jinja_env)

Review Comment:
   πŸ’‘ did that and tested it, works as intended the template error is suppressed 
for failed tasks. (I also like that this version does not involve touching 
`_execute_task` πŸ˜… )



##########
airflow/models/taskinstance.py:
##########
@@ -2715,29 +2727,26 @@ def signal_handler(signum, frame):
 
             # Execute the task
             with set_current_context(context):
-                result = self._execute_task(context, task_orig)
+                result, rendered_map_index = self._execute_task(context, 
task_orig, jinja_env=jinja_env)

Review Comment:
   πŸ’‘thank you! did that and tested it, works as intended the template error is 
suppressed for failed tasks. (I also like that this version does not involve 
touching `_execute_task` πŸ˜… )



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to