I´m trying to send an email notification upon the ...
# ask-community
j
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
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
It worked well for my case, thanks!
🌈 1
205 Views