You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "Teresa Martyny (JIRA)" <ji...@apache.org> on 2019/05/20 20:17:00 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 ]
Teresa Martyny updated AIRFLOW-4547:
------------------------------------
Description:
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.
was:Airflow allows a dev to assign a negative priority_weight to a task. However, the Airflow code does math to change the priority_weight on its own. 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.
> 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
>
> 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.3#76005)