potiuk commented on code in PR #57741:
URL: https://github.com/apache/airflow/pull/57741#discussion_r2487320185
##########
airflow-core/src/airflow/cli/commands/dag_processor_command.py:
##########
@@ -52,6 +52,15 @@ def dag_processor(args):
"""Start Airflow Dag Processor Job."""
job_runner = _create_dag_processor_job_runner(args)
+ if hasattr(args, "dev") and args.dev:
+ from airflow.cli.hot_reload import run_with_reloader
+
+ run_with_reloader(
+ lambda: run_job(job=job_runner.job,
execute_callable=job_runner._execute),
+ process_name="dag-processor",
+ )
+ return
Review Comment:
Very good point
--
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]