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

Alec Ryan

04/26/2022, 11:02 PM
How can I launch a job run with a sensor when a partitioned backfill completes each partition?
Job 1 (partitioned) runs, kicks off job 2 which runs and then kicks off job 3
I need to backfill job 1 and kick off jobs 2 & 3 for each partition run
c

chris

04/27/2022, 5:46 PM
You can have the partitioned job launch off a materialization at the end of each run, which you can use to trigger the next jobs in sequence using an asset sensor: https://docs.dagster.io/concepts/partitions-schedules-sensors/sensors#asset-sensors
a

Alec Ryan

04/27/2022, 5:48 PM
Hey Chris, that is what I am currently doing
My issue is the second and third job don't run for every partition backfill
c

chris

04/27/2022, 5:50 PM
hmm how often is the sensor firing? Are you logging a partitioned asset materialization?
a

Alec Ryan

04/27/2022, 6:00 PM
Yes, the first job logs the partitioned asset materialization.
The second job does not fire though
c

chris

04/27/2022, 6:30 PM
Hmm asset sensors should fit your use case here. Are you sure that the asset sensor is actually firing?
a

Alec Ryan

04/28/2022, 12:08 PM
I thought so... How would I check that?
They don't run (which is my problem) so I guess they don't
c

chris

04/28/2022, 4:32 PM
There should be a tick history on the page for the sensor in dagit.
(Also, make sure that the daemon is actually on, and the sensor is switched on)
❤️ 1
a

Alec Ryan

04/29/2022, 7:11 PM
Ha yeah, it is on!
Thanks for the info, I'll check this weekend
3 Views