https://dagster.io/ logo
#ask-community
Title
# ask-community
c

Charlie Bini

09/07/2022, 5:25 PM
is there an easy way to get average step duration from a run?
looks like I can download the debug file and parse it myself, but wondering if there's anything built-in
y

yuhan

09/07/2022, 5:38 PM
Copy code
from dagster import DagsterInstance

instance = DagsterInstance.get()
all_logs = instance.all_logs(run_id="my_run_id")
there’s no super built-in way to do so, but you can get all the logs via DagsterInstance programmatically (source code) and then filter step start and complete events to compute the average step duration. here’s a similar github discussion that’s about getting run-level data from Dagster Instance: https://github.com/dagster-io/dagster/discussions/8417
6 Views