Piotr Danielczyk
03/13/2024, 9:37 AMScout
03/13/2024, 9:37 AMpython @run_status_sensor( run_status=DagsterRunStatus.SUCCESS, monitored_jobs=[job_1], request_job=job_2, ) def run_job_2_sensor(context): return RunRequest(run_key=None, run_config=run_config)
In this example, job_2
is triggered after job_1
completes successfully. This is the recommended way to define dependencies between jobs when you want one job to run after another. If you are looking for a way to trigger a job run from another job run without using sensors, the documentation does not provide an alternative method. Sensors are the mechanism provided by Dagster for event-driven execution between jobs.