You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2022/05/31 09:46:18 UTC
[GitHub] [airflow] gmyrianthous commented on issue #18041: Tasks intermittently gets terminated with SIGTERM on kubernetes executor
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: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org