You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "Kaxil Naik (JIRA)" <ji...@apache.org> on 2019/08/07 16:25:03 UTC

[jira] [Updated] (AIRFLOW-4547) Negative priority_weight should not be permitted

     [ https://issues.apache.org/jira/browse/AIRFLOW-4547?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kaxil Naik updated AIRFLOW-4547:
--------------------------------
    Fix Version/s:     (was: 1.10.4)
                   2.0.0

> Negative priority_weight should not be permitted
> ------------------------------------------------
>
>                 Key: AIRFLOW-4547
>                 URL: https://issues.apache.org/jira/browse/AIRFLOW-4547
>             Project: Apache Airflow
>          Issue Type: Bug
>          Components: operators
>    Affects Versions: 1.10.3
>            Reporter: Teresa Martyny
>            Priority: Major
>             Fix For: 2.0.0
>
>
> Airflow allows a dev to assign a negative priority_weight to a task. However, the Airflow code does math to determine the priority_weight on its own in models.py#priority_weight_total on line 2796
> This makes the final priority_weight wrong in the end. Airflow should raise an error if an operator has priority_weight assigned to a negative number at any point. 



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)