alexInhert opened a new issue #18402:
URL: https://github.com/apache/airflow/issues/18402


   ### Description
   
   Currently the default value of execution_timeout in base operator is None
   
https://github.com/apache/airflow/blob/c686241f4ceb62d52e9bfa607822e4b7a3c76222/airflow/models/baseoperator.py#L502
   
   This means that a task will run without limit till finished.
   
   
   ### Use case/motivation
   
   The problem is that there is no way to overwrite this default for all dags. 
This causes problems where we find that tasks run sometimes for 1 week!!! for 
no reason. They are just stuck. This mostly happens with tasks that submit work 
to some 3rd party resource. The 3rd party had some error and terminated but the 
Airflow task for some reason did not.
   
   This can be handled in cluster policy however it feels that cluster policy 
is more to enforce something but less about setting defaults values.
   
   ### Related issues
   
   _No response_
   
   ### Are you willing to submit a PR?
   
   - [ ] 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