gmyrianthous commented on issue #18041:
URL: https://github.com/apache/airflow/issues/18041#issuecomment-1141914974

   **Possible fix**
   
   I was having the same problem after upgrading from Airflow `v1.10.15` to 
`v2.2.5` and was seeing the error in long-running DAGs having a fairly high 
number of tasks. 
   
   Apparently, the `dagrun_timeout` in `airflow.models.DAG`  was not respected 
in earlier Airflow versions so I noticed that the DAGs I was trying to migrate 
to the new Airflow instance were running for much longer than the specified 
`dagrun_timeout`. 
   
   The solution for me was to simply increase the `dagrun_timeout` (e.g. to 
`dagrun_timeout=datetime.timedelta(minutes=120)`). 
   
   Note that this variable is effective only for scheduled tasks (in other 
words with DAGs with a specified `schedule_interval`). 


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