is there an easy way to get average step duration ...
# ask-community
c
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
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