vatsrahul1001 opened a new issue, #47886:
URL: https://github.com/apache/airflow/issues/47886

   ### Apache Airflow version
   
   3.0.0
   
   ### If "Other Airflow 2 version" selected, which one?
   
   _No response_
   
   ### What happened?
   
   I observed an issue with backfills in Airflow. I have a DAG with 
start_date=datetime(2025, 1, 20) and catchup=True. When triggering a backfill 
for the date range 2025-01-01 to 2025-01-03, backfill DAG runs were correctly 
created for 2025-01-02 and 2025-01-03. However, I also noticed scheduled DAG 
runs being generated for dates from 2025-01-04 to 2025-01-19, which was 
unexpected.
   
   
![Image](https://github.com/user-attachments/assets/c9b85095-785b-4543-befa-73d311e71b13)
   
   ### What you think should happen instead?
   
   _No response_
   
   ### How to reproduce
   
   1. Unpause below mentioned DAG.
   2. Execute backfill for the date range 2025-01-01 to 2025-01-03.
   3. Now notice unexcepted DAGRUN for 2025-01-04 to 2025-01-19
   
   
   
   
   ```
   from airflow import DAG
   from  airflow.providers.standard.sensors.bash import BashSensor
   from datetime import datetime
   
   date = "{{ ds }}"
   
   with DAG(
       "example_bash_sensor",
       tags=[ "sensor"],
       schedule="@daily",
       catchup=True,
       start_date=datetime(2025, 1, 20),
   ) as dag:
       task1 = BashSensor(task_id="sleep_10", bash_command="sleep 1")
       task2 = BashSensor(
           task_id="sleep_total",
           bash_command="echo $EXECUTION_DATE",
           env={"EXECUTION_DATE": date},
       )
   
   ```
   
   ### Operating System
   
   linux
   
   ### Versions of Apache Airflow Providers
   
   _No response_
   
   ### Deployment
   
   Official Apache Airflow Helm Chart
   
   ### Deployment details
   
   _No response_
   
   ### Anything else?
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [ ] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [x] I agree to follow this project's [Code of 
Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
   


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