utkarsharma2 commented on code in PR #32118:
URL: https://github.com/apache/airflow/pull/32118#discussion_r1247434862


##########
airflow/cli/commands/dag_command.py:
##########
@@ -72,7 +72,13 @@ def _run_dag_backfill(dags: list[DAG], args) -> None:
 
         if args.dry_run:
             print(f"Dry run of DAG {dag.dag_id} on {args.start_date}")
-            dr = DagRun(dag.dag_id, execution_date=args.start_date)
+            dr = DagRun(
+                dag.dag_id,
+                execution_date=args.start_date,
+                data_interval=dag.timetable.infer_manual_data_interval(
+                    run_after=timezone.coerce_datetime(args.start_date)
+                ),

Review Comment:
   @uranusjr Updated the code, please check :)
   
   Also, just out of curiosity. If the backfill is triggered by the `CLI/API` 
will it still be scheduled? If so why do we call other operations `manual` if 
they are triggered by `CLI/API` and not backfill?



-- 
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]

Reply via email to