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

Gatsby Lee

12/13/2022, 9:18 PM
hello, is it possible to monitor multiple DagsterRunStatus with this decorator
run_status_sensor
? is multiple functions have to be defined with each DagsterRunStatus?
dagster bot responded by community 1
n

nickvazz

12/13/2022, 10:39 PM
It looks like you can both monitor and create new jobs using the run_status_sensor using
monitored_jobs
and
request_jobs
.
Is that what youre after?
g

Gatsby Lee

12/13/2022, 11:36 PM
yep
@nickvazz that’s correct.
I’d like to create two sensors. 1. if JOB is running 2. if JOB is not running.
curious if there is such thing like
run_not_status_sensor
? 😄
n

nickvazz

12/14/2022, 7:54 PM
You could probably query the https://docs.dagster.io/_apidocs/internals#instance to check if a run is already running and conditionally yield a run request https://docs.dagster.io/concepts/partitions-schedules-sensors/sensors#run-status-sensors