blinkseb opened a new issue #18880:
URL: https://github.com/apache/airflow/issues/18880


   ### Apache Airflow version
   
   2.1.4 (latest released)
   
   ### Operating System
   
   Debian 9
   
   ### Versions of Apache Airflow Providers
   
   ```
   apache-airflow-providers-amazon==2.2.0
   apache-airflow-providers-apache-hdfs==2.1.0
   apache-airflow-providers-celery==2.0.0
   apache-airflow-providers-ftp==2.0.1
   apache-airflow-providers-http==2.0.1
   apache-airflow-providers-imap==2.0.1
   apache-airflow-providers-mysql==2.1.1
   apache-airflow-providers-redis==2.0.1
   apache-airflow-providers-sqlite==2.0.1
   ```
   
   ### Deployment
   
   Virtualenv installation
   
   ### Deployment details
   
   _No response_
   
   ### What happened
   
   Hello,
   
   We have a lot of DAGs that we ran daily, but only at specific time of the 
year. For that, we programatically pause and unpause the DAGs when they should 
run. However, starting from Airflow 2.10.3, the unpaused DAG is no longer 
triggered (it was working correctly in previous version of Airflow).
   
   The only thing I see in the log file is the following:
   
   ```
   [2021-10-10 22:02:35,058] {dag.py:2287} INFO - Setting next_dagrun for mydag 
to 2021-10-09 22:21:00+00:00
   [2021-10-10 22:02:35,080] {dagrun.py:477} INFO - Marking run <DagRun mydag @ 
2021-10-08 22:21:00+00:00: scheduled__2021-10-08T22:21:00+00:00, externally 
triggered: False> successful
   [...]
   [2021-10-10 22:21:08,439] {dag.py:2287} INFO - Setting next_dagrun for mydag 
to 2021-10-10 22:21:00+00:00
   [2021-10-10 22:21:08,653] {dagrun.py:477} INFO - Marking run <DagRun mydag @ 
2021-10-09 22:21:00+00:00: scheduled__2021-10-09T22:21:00+00:00, externally 
triggered: False> successful
   ```
   
   To force the DAG to run, I have to restart the scheduler, force run the 
first task of the DAG, and then clear it.
   
   I also tried to wait a day or two, but the DAG is never scheduled.
   
   Please tell me if you need more information
   
   Thanks a lot
   
   ### What you expected to happen
   
   The unpaused DAG should be triggered when unpaused
   
   ### How to reproduce
   
   _No response_
   
   ### 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: [email protected]

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


Reply via email to