How can I launch a job run with a sensor when a p...
# ask-community
a
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
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
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
hmm how often is the sensor firing? Are you logging a partitioned asset materialization?
a
Yes, the first job logs the partitioned asset materialization.
The second job does not fire though
c
Hmm asset sensors should fit your use case here. Are you sure that the asset sensor is actually firing?
a
I thought so... How would I check that?
They don't run (which is my problem) so I guess they don't
c
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
Ha yeah, it is on!
Thanks for the info, I'll check this weekend