You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "jack (JIRA)" <ji...@apache.org> on 2019/04/23 11:48:00 UTC

[jira] [Commented] (AIRFLOW-4059) Define max time of task in pool

    [ https://issues.apache.org/jira/browse/AIRFLOW-4059?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16824001#comment-16824001 ] 

jack commented on AIRFLOW-4059:
-------------------------------

This can be nice improvement for the pool mechanism.

Airflow has similar mechanism using cluster policy however not for pools.

https://airflow.apache.org/concepts.html#cluster-policy

> Define max time of task in pool
> -------------------------------
>
>                 Key: AIRFLOW-4059
>                 URL: https://issues.apache.org/jira/browse/AIRFLOW-4059
>             Project: Apache Airflow
>          Issue Type: Improvement
>    Affects Versions: 2.0.0
>            Reporter: HaloKu
>            Priority: Major
>
> Currently Airflow allow to define slots in Pool.
> However it doesn't allow to define max_time to a task in a pool.
> This feature can be handy and it exists in many systems - if max_time exceeded the task will be killed and it's slot will be freed.
> This can be implemented literally or with more advanced options like soft / force flag (which will also be defined in pool settings):
>  # soft - if there is no other task waiting for the pool then max_time is ignored until the current task finished or another task is waiting for the pool.
>  # force - no matter what task will be killed when it exceed max_time.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)