Charlie Bini
09/07/2022, 5:25 PMCharlie Bini
09/07/2022, 5:26 PMyuhan
09/07/2022, 5:38 PMfrom 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