I’m working on a slack run failure sensor. Unfortu...
# ask-community
s
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
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
This works great - thank you 🙂 dagpurr