wjddn279 commented on code in PR #63498:
URL: https://github.com/apache/airflow/pull/63498#discussion_r2999537160
##########
providers/edge3/src/airflow/providers/edge3/cli/worker.py:
##########
@@ -226,15 +227,23 @@ def _run_job_via_supervisor(self, workload: ExecuteTask,
results_queue: Queue) -
results_queue.put(e)
return 1
- def _launch_job(self, workload: ExecuteTask) -> tuple[Process,
Queue[Exception]]:
+ def _launch_job(self, workload: ExecuteTask | ExecuteCallback) ->
tuple[Process, Queue[Exception]]:
# Improvement: Use frozen GC to prevent child process from copying
unnecessary memory
# See _spawn_workers_with_gc_freeze() in
airflow-core/src/airflow/executors/local_executor.py
results_queue: Queue[Exception] = Queue()
- process = Process(
- target=self._run_job_via_supervisor,
- kwargs={"workload": workload, "results_queue": results_queue},
- )
- process.start()
+ if is_callback_execute(workload):
+ process = Process(
+ # TODO : change the supervisor by using in
https://github.com/apache/airflow/pull/62645
Review Comment:
TODO
--
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]