Manga Dhatrika
05/23/2022, 7:46 PMJordan
05/23/2022, 8:17 PMdefault_status = DefaultSensorStatus.RUNNING
in your sensor definition to have the default behaviourManga Dhatrika
05/23/2022, 8:29 PM@run_failure_sensor(
job_selection=[extract_and_load_data],default_status = DefaultSensorStatus.RUNNING # so the sensor only runs when this job fails
)
def rerun_db_fetch_sensor(context: RunFailureSensorContext):
# logic to get the rows to start on
yield RunRequest(
run_config={},
job_name="extract_and_load_data"
)
2022-05-23 16:39:33 -0400 - dagster.daemon.SensorDaemon - INFO - Completed a reaction request for run 0b6ec3dd-7095-4664-8711-2ed2168108d2: Sensor "rerun_db_fetch_sensor" acted on run status FAILURE of run 0b6ec3dd-7095-4664-8711-2ed2168108d2.
sean
05/25/2022, 4:48 PMrun_failure_sensor
currently does not support yielding RunRequest
like other sensors. We are aware of this issue and that our docs are confusing, and have an issue for it: https://github.com/dagster-io/dagster/issues/7383
You can expect this to be corrected in the next few weeks.