Is there documentation on how to kick off a run of...
# ask-community
d
Is there documentation on how to kick off a run of a partition from a sensor?
t
The example does it
the one for custom partitions: it adds an element to the partition and schedules a run for it
d
Ah, that is if I had a job. I just have a partitioned asset where that has job
and I want to yield a RunRequest so that I can not rerun when its going to be the same
t
I created a job for that asset with
create_asset_job
and it works
d
ty
Getting an error saying:
called  run_request_for_partition on non-partitioned job
I am creating the job with
define_asset_job('myjob',[myasset])
if that helps
t
your asset is partitioned?
I am also passing the partition to the job:
Copy code
event_files_job = define_asset_job("event_files_job", AssetSelection.keys("event_files"), partitions_def=event_files_partition)
d
That worked, thank you