Skip to content

Latest commit

 

History

History
36 lines (27 loc) · 1.08 KB

readme.md

File metadata and controls

36 lines (27 loc) · 1.08 KB

SLA tracker based on longest paths

This script lets the user visualise and extract the longest path of a task in a DAG

How to

First, install the needed dependencies

poetry install

This library uses graphviz to render the final graph, if you want to use this functionality you should have graphviz in your system:

brew install graphviz

Get the critical path of a model:

poetry run python main.py --model i

This will produce the critical path for the previous date of the run:

entity    start_time           end_time               duration  
--------  -------------------  -------------------  ----------  
c         2023-06-01 01:00:00  2023-06-01 01:00:03           3  
b         2023-06-01 01:00:03  2023-06-01 01:00:06           3  
h         2023-06-01 01:00:06  2023-06-01 01:00:10           4  
i         2023-06-01 01:00:10  2023-06-01 01:00:15           5  

longest patht

Support for multiple inputs

This script has support to read dbt manifest/runtime files