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

Juan Freire

02/24/2023, 12:05 PM
I´m trying to send an email notification upon the failure of a daily partitioned job. Based on the docs, it seems that using a
run_failure_sensor
is the recomended way, but I can´t find anything about partitioned jobs. Is there any way to know the failed job partition from
RunFailureSensorContext
?
dagster bot responded by community 1
v

Vinnie

02/24/2023, 12:33 PM
There might be a shorter/more elegant way, but you can fetch the partition from the run tags in
context.dagster_run.tags["dagster/partition"]
I might be missing a reference somewhere, but it seems like
DagsterRun
doesn’t directly include information about the partition outside of tags. Maybe someone can correct me if I’m wrong.
j

Juan Freire

02/24/2023, 1:18 PM
It worked well for my case, thanks!
🌈 1
117 Views