apache/airflow

Tasks that are running when a DAG run reaches its timeout should optionally support `on_killed`

Open

#41.036 aberto em 26 de jul. de 2024

Ver no GitHub
 (9 comments) (1 reaction) (0 assignees)Python (16.781 forks)batch import
area:Schedulergood first issuekind:feature

Métricas do repositório

Stars
 (44.809 stars)
Métricas de merge de PR
 (Mesclagem média 7d 18h) (834 fundiu PRs em 30d)

Description

Description

The current functionality for task instances that are in the running state when a DAG run reaches its timeout is controversial (see #30264). It'd be great if users could optionally allow tasks' on_kill method to be called at this time.

Use case/motivation

Some users would like for externally running workloads (e.g. snowflake, emr, bigquery, etc etc) to stop executing when a DAG run times out.

Related issues

#30264

Are you willing to submit a PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Guia do colaborador