reducing the
play

REDUCING THE LINES: A VISUAL DAG EDITOR Why does this process - PowerPoint PPT Presentation

REDUCING THE LINES: A VISUAL DAG EDITOR Why does this process take so long? -- Every product owner, at every company 2 THE PROBLEM IS... Writing DAGs can be a time consuming process. Checking all of the parameters for inclusion and


  1. REDUCING THE LINES: A VISUAL DAG EDITOR

  2. “ Why does this process take so long? -- Every product owner, at every company 2

  3. THE PROBLEM IS... Writing DAGs can be a time consuming process. Checking all of the parameters for inclusion and accuracy, and creating task dependencies is time-consuming, and error prone. 3

  4. THREE Impediments to writing DAGs quickly Verbosity Fluency Complexity 4

  5. 1. VERBOSITY Mountains of detail 5

  6. DAG Metrics DAG Length Task Relationships Most DAGs were between 1000 and 2000 lines Representing a many-to-one dependency ends up long, with many reaching up 4000 lines. with many repetitions of very similar function calls. task_1 >> task_4 task_2 >> task_4 task_3 >> task_4 More info on DAG parameters at: https://airflow.apache.org/docs/stable/_api/airflow/models/dag/index.html 6

  7. 2. COMPLEXITY Where does that go? 7

  8. Task Metrics Number Task Parameters Confusing Order for Parameters Many task parameters are repeated and use As DAGs are written by different developers and/or standard or common parameters. updated over time, parameter order can become confusing, or subject to personal preferences. Providing clear values for default boolean parameters requires extra lines of code. More info on operator parameters to use this template at: https://airflow.apache.org/docs/stable/_api/airflow/operators/index.html 8

  9. 3. FLUENCY Not everyone speaks Python 9

  10. Language Adoption Python Developers Business Power Users Approximately 8MM † developers worldwide use Number of users familiar with a gui and browser. Python. Out of a total global workforce of 3 Billion * 1.5 Billion ‡ 0.002% Citations from: * wikipedia( https://en.wikipedia.org/wiki/Global_workforce#:~:text=As%20of%202012%2C%20the%20global,workers%2C%20around%20200%20million%20unemployed. ) † zdnet( https://www.zdnet.com/article/programming-languages-python-developers-now-outnumber-java-one ) ‡ madeup stat to prove my point 10

  11. A SOLUTION In three parts 11

  12. 3 Questions: How can we enable? Grouping Isolated Configuration Non-technical Authors How can common tasks Can the creation of a DAG Can a someone without be grouped together? be driven dynamically? Python experience edit a DAG? 12

  13. THREE Stages SubDAGs Dynamic DAGs A Visual Editor 13

  14. ~5,000 A complex DAG with 80 + tasks can weigh-in at near 5000 lines. 14

  15. < 1,000 Adding SubDags for repetitive tasks can bring this down to less than 1000 lines. 15

  16. < 500 Using Dynamic DAGs can help reduce this further. 16

  17. + RABIX: VISUAL EDITOR Airflow plugin to allow the use of Rabix: a visual editor using open standards for workflow definition. 17

  18. A complete DAG Huge reductions in length. 18

  19. < 20 For all DAGs. 19

  20. Where did the LINES go? Code Modules. Meta Data Files. SubDags help you to apply Configuration values are the DRY principle to your stored in metadata DAGs. descriptions of your tasks and DAG. Duplicate lines are hidden behind abstractions. 20

  21. A DEMO 21

  22. THE TECHNICALS Common Workflow Language Rabix The Common Workflow Rabix Composer: a powerful, Language (CWL) is an open open source, graphical editor standard for describing analysis allowing visual programming in workflows and tools... CWL. https://github.com/common-workflow-lang https://github.com/rabix/composer uage/common-workflow-language https://rabix.io/ 22

  23. THANKS! MY NAME IS TRAEY HATCH I am here because I love Airflow. You can find me at: @trejas2 linkedin.com/in/trejas github.com/trejas 23

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend