+1 on the idea Distributing the workload onto the workers should ease CPU usage on the main host if using a VM based deployment. On the celery/edge side, I think we should be mindful of the worker capacity and allow full control on which worker(s) could the dag parsing would be offloaded to. We should also count each parsing process towards a pool slot and concurrency.
Thanks, Dheeraj On Thu, Dec 3, 2026 at 11:10 AM Ephraim Anierobi via dev < [email protected]> wrote: > Hi all, > > I’d like to open discussion on AIP-130, Run Dag parsing through executors: > https://cwiki.apache.org/confluence/x/wQiWGw > > Today, a Dag processor imports a bundle’s files on its own host. Running a > processor per bundle lets deployment managers give each bundle its own > dependencies and resources. For a single large bundle, though, adding > parsing processes puts more load on the same host, and a second processor > pointed at that bundle repeats the same imports instead of sharing them. > Neither lets the bundle use spare capacity on other workers. > > The AIP proposes an optional executor backend for parsing. The Dag > processor would still discover files and decide which are due, then send > them to an executor in batches. A deployment could spread one bundle’s > imports across Celery workers or Kubernetes pods, using existing task > workers or workers dedicated to parsing. The local parsing pool would > remain the default. > > The LocalExecutor prototype <https://github.com/apache/airflow/pull/73750> > runs the parser and returns results through a temporary directory on the > processor host. To support remote workers, the AIP proposes publishing each > file’s result through the Execution API as it finishes. If a worker dies > partway through a batch, the processor would retry only the unfinished > files and keep the ones already published. > > I’d welcome feedback here or on the AIP. One question for Celery users in > particular: if parsing and tasks shared workers, neither would get priority > over the other. Would your queue setup and the proposed cap on outstanding > parse batches ([dag_processor] parallelism) give you enough control over > how long tasks wait? > > Thanks & Regards, > > Ephraim >
