mhenc commented on a change in pull request #21301:
URL: https://github.com/apache/airflow/pull/21301#discussion_r809803793
##########
File path: airflow/jobs/scheduler_job.py
##########
@@ -1120,11 +1125,9 @@ def _verify_integrity_if_dag_changed(self, dag_run:
DagRun, session=None):
dag_run.verify_integrity(session=session)
def _send_dag_callbacks_to_processor(self, dag: DAG, callback:
Optional[DagCallbackRequest] = None):
- if not self.processor_agent:
- raise ValueError("Processor agent is not started.")
self._send_sla_callbacks_to_processor(dag)
if callback:
- self.processor_agent.send_callback_to_execute(callback)
+ self.executor.send_callback_to_execute(callback)
Review comment:
I agree. Let' use "send_callback" as we use "send" verb in other places.
--
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]