[ https://issues.apache.org/jira/browse/AIRFLOW-3237?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Kaxil Naik resolved AIRFLOW-3237. --------------------------------- Resolution: Fixed Assignee: Bas Harenslak Fix Version/s: 2.0.0 > 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: 2.0.0 > > > 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)