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

   ### Apache Airflow version
   
   Other Airflow 2 version (please specify below)
   
   ### If "Other Airflow 2 version" selected, which one?
   
   2.10.2
   
   ### What happened?
   
   Hi All,
   
   Why does my DAG still behave like catchup=True and run for the missing DAG 
run when I change the schedule interval? I already set it to False, but why is 
it still running for the missing DAG run?
   
   DAG code:
   ```python
   with DAG(
       dag_id=dag_id,
       schedule=schedule_value,
       start_date=datetime(2024, 12, 1),
       catchup=False,
       tags=["xxx"],
       default_args=default_args,
   ) as dag:
       schemas = variable_mapping["data"]
   
       with TaskGroup(
           group_id="compare",
           tooltip="vs",
       ) as column_compare_tg:
           for schema in list(schemas.keys()):
               create_task(
                   env_vars, job_name=job_name, redshift_schema=schema, 
_type="compare"
               )
   
       send_alert = create_task(env_vars, job_name=job_name, _type="alert")
   
       column_compare_tg >> send_alert
   ```
   
   ### What you think should happen instead?
   
   When I changed the schedule interval, the DAG should skip the missing run 
and run only one task.
   
   ### How to reproduce
   
   1. Create a DAG with `schedule_value` as a Airflow variable
   2. First time: set the schedule as 2 time a day
   3. Second time: set the schedule as 5 time a day
   
   ### Operating System
   
   Debian GNU/Linux 12 (bookworm)
   
   ### Versions of Apache Airflow Providers
   
   apache-airflow-providers-amazon==8.28.0
   apache-airflow-providers-celery==3.8.1
   apache-airflow-providers-cncf-kubernetes==8.4.1
   apache-airflow-providers-common-compat==1.2.0
   apache-airflow-providers-common-io==1.4.0
   apache-airflow-providers-common-sql==1.16.0
   apache-airflow-providers-docker==3.13.0
   apache-airflow-providers-elasticsearch==5.5.0
   apache-airflow-providers-fab==1.3.0
   apache-airflow-providers-ftp==3.11.0
   apache-airflow-providers-google==10.22.0
   apache-airflow-providers-grpc==3.6.0
   apache-airflow-providers-hashicorp==3.8.0
   apache-airflow-providers-http==4.13.0
   apache-airflow-providers-imap==3.7.0
   apache-airflow-providers-microsoft-azure==10.4.0
   apache-airflow-providers-mysql==5.7.0
   apache-airflow-providers-odbc==4.7.0
   apache-airflow-providers-openlineage==1.11.0
   apache-airflow-providers-postgres==5.12.0
   apache-airflow-providers-redis==3.8.0
   apache-airflow-providers-sendgrid==3.6.0
   apache-airflow-providers-sftp==4.11.0
   apache-airflow-providers-slack==8.9.0
   apache-airflow-providers-smtp==1.8.0
   apache-airflow-providers-snowflake==5.7.0
   apache-airflow-providers-sqlite==3.9.0
   apache-airflow-providers-ssh==3.13.1
   
   ### Deployment
   
   Official Apache Airflow Helm Chart
   
   ### Deployment details
   
   helm, on AWS EKS
   
   ### Anything else?
   
   No.
   
   ### 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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to