o-nikolas commented on code in PR #38514:
URL: https://github.com/apache/airflow/pull/38514#discussion_r1548704690
##########
airflow/jobs/scheduler_job_runner.py:
##########
@@ -819,19 +821,20 @@ def _execute(self) -> int | None:
)
try:
- self.job.executor.job_id = self.job.id
- if self.processor_agent:
- self.log.debug("Using PipeCallbackSink as callback sink.")
- self.job.executor.callback_sink = PipeCallbackSink(
- get_sink_pipe=self.processor_agent.get_callbacks_pipe
- )
- else:
- from airflow.callbacks.database_callback_sink import
DatabaseCallbackSink
+ for executor in self.job.executors:
+ executor.job_id = self.job.id
+ if self.processor_agent:
+ self.log.debug("Using PipeCallbackSink as callback sink.")
Review Comment:
Happy to share the sink between all executors, I'll make the change along
with the above change :)
--
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]