Is there a way to get access to resources from a R...
# ask-community
b
Is there a way to get access to resources from a RunStatusSensorContext?
Copy code
@run_status_sensor(
    pipeline_run_status=PipelineRunStatus.SUCCESS,
    pipeline_selection=pipeline_names,
)
def job_success_email_sensor(context: RunStatusSensorContext):
c
There is not as of yet - and while we have an issue on this for regular sensors, I don't think we have one for failure sensors. Would you mind making an issue describing your use case?
b
This would be very useful especially for operations that only need to run on job success. My use case involves a resource where I collect metadata from a job across multiple ops including one that has a DynamicOutput. When the job finishes, I publish the collected metadata at once to a storage layer which I would like to implement on job success within a @run_status_sensor.