https://dagster.io/ logo
Title
j

Jayme Edwards

11/01/2022, 6:18 PM
In the dagit UI I see "Timing" next to runs, is there a context.run_config['timing'] or something like that?
d

daniel

11/01/2022, 6:40 PM
Hi Jayme - this is a bit clunky but I suspect would get the job done:
from dagster import RunsFilter

# Within the op or resource
run_record = context.instance.get_run_records(RunsFilter(run_ids=[context.dagster_run.run_id]))[0]
start_time = run_record.start_time
j

Jayme Edwards

11/01/2022, 6:43 PM
Woo - wizardry. Thanks @daniel!
:condagster: 1
Do you happen to know offhand if this date is in local server time or UTC?
d

daniel

11/01/2022, 6:45 PM
its a unix timestamp, so UTC
(i.e. a float)
j

Jayme Edwards

11/01/2022, 6:56 PM
Got it. Thanks again!