jason810496 commented on code in PR #57741:
URL: https://github.com/apache/airflow/pull/57741#discussion_r2490964913
##########
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:
Good point and nice catch! I just tested it locally with `print(1/0)` and it
works well.
The main process will still watch the file change and restart the job again.
I also updated the demo video in the description.
--
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]