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

   ### Apache Airflow version
   
   2.6.2
   
   ### What happened
   
   I setup a DAG to run every 15 minutes, with a start date aligned on hour 
start, to have it scheduled with data interval like:
   - hh:00 - hh:15
   - hh:15 - hh:30
   - hh:30 - hh:45
   - hh:45 - hh+1:00
   
   But if I disable catchup, the resulting intervals are not hour aligned, 
whatever the start date, but aligned with the time when I unpaused the DAG.
   
   ### What you think should happen instead
   
   I expect the DAG schedules to still be hour aligned, but just skip any 
"missed" schedule.
   
   ### How to reproduce
   
   Create two similar DAGs (with just the `catchup` argument changing):
   ```python
   from airflow.models.dag import DAG
   from airflow.operators.empty import EmptyOperator
   import datetime
   
   with DAG(dag_id="with_catch",
            start_date=datetime.datetime(2023, 7, 4, 12, 
tzinfo=datetime.timezone.utc),
           schedule=datetime.timedelta(minutes=30),
       catchup=True) as dag1:
           EmptyOperator(task_id="task")
   
   
   with DAG(dag_id="no_catch",
            start_date=datetime.datetime(2023, 7, 4, 12, 
tzinfo=datetime.timezone.utc),
           schedule=datetime.timedelta(minutes=30),
       catchup=False) as dag1:
           EmptyOperator(task_id="task")
   ```
   
   ### Operating System
   
   Arch Linux
   
   ### Versions of Apache Airflow Providers
   
   _No response_
   
   ### Deployment
   
   Other Docker-based deployment
   
   ### Deployment details
   
   ```bash
   docker run --rm -it -v /tmp/dags:/opt/airflow/dags -p 8080:8080 --entrypoint 
airflow apache/airflow:2.6.2 standalone
   ```
   
   ### Anything else
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [X] 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: commits-unsubscr...@airflow.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to