airflow-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kaxil Naik (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (AIRFLOW-3237) Refactor example DAGs
Date Fri, 26 Oct 2018 08:28:04 GMT

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

Kaxil Naik updated AIRFLOW-3237:
--------------------------------
    Fix Version/s:     (was: 2.0.0)
                   1.10.1

> Refactor example DAGs
> ---------------------
>
>                 Key: AIRFLOW-3237
>                 URL: https://issues.apache.org/jira/browse/AIRFLOW-3237
>             Project: Apache Airflow
>          Issue Type: Improvement
>            Reporter: Bas Harenslak
>            Assignee: Bas Harenslak
>            Priority: Major
>             Fix For: 1.10.1
>
>
> I think it's important to have the example DAGs reflect good programming standards and
how to write clean and concise Airflow code. Therefore, refactor the example DAGs, which mostly
involves:
> * Replace set_upstream() and set_downstream() by the bitshift operators, since they exist
since Airflow 1.8 and everybody uses those now.
> * Optimise imports (grouping by stdlib/3rd party/own and alphabetic ordering).
> * Place function calls with arguments on single line if line is short enough, or put
each function argument on a new line, but don't mix.
> * Passing list of tasks when setting dependencies instead of making multiple set_up/down-stream
calls.
> * Switch upstream dependencies into downstream dependencies since these are more logical
to read IMO.



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

Mime
View raw message