ashb commented on a change in pull request #17819:
URL: https://github.com/apache/airflow/pull/17819#discussion_r698326582
##########
File path: airflow/utils/callback_requests.py
##########
@@ -59,8 +59,10 @@ def __init__(
simple_task_instance: SimpleTaskInstance,
is_failure_callback: Optional[bool] = True,
msg: Optional[str] = None,
+ task: Optional[Any] = None,
Review comment:
We can't pass the task here -- this is a "message" that goes between
processes, and by doing this it will require serialization of the task, but the
task here in the scheduler is Serialized and so won't have access to any of the
code etc.
Instead (if we need this sort of behaviour) we'll have to load the dag in
the processor (which we already do) and _then_ execute it.
--
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]