Skip to content

Allow to set execution_timeout default value in airflow.cfg #18578

@potiuk

Description

@potiuk

Discussed in #18411

Originally posted by alexInhert September 21, 2021

Description

Currently the default value of execution_timeout in base operator is None

execution_timeout: Optional[timedelta] = None,

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions