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

Steven Litvack-Winkler

12/20/2022, 9:21 PM
I’m working on a slack run failure sensor. Unfortunately, there is a backlog of failed runs it is going through from the past few weeks. It would be nice for the error message to show the date the job kicked off or failed - is this data available in the RunFailureSensorContext?
🤖 1
s

sean

12/20/2022, 10:46 PM
Hi Steven, thanks for the question. We need to make this info more accessible but I think this snippet should work as a temporary solution:
Copy code
run_record = context.instance.get_run_records(
    filters=RunsFilter(run_ids=[context.dagster_run.run_id]),
    limit=1
)[0]
run_started_time = run_record.create_timestamp
s

Steven Litvack-Winkler

12/20/2022, 11:36 PM
This works great - thank you 🙂 dagpurr