Skip to content

Sensor to trigger job over partition subset update #24351

Answered by clairelin135
AdamMertzRS asked this question in Q&A
Discussion options

You must be logged in to vote

Hi Adam. By default, @asset_sensor will just fetch the latest new event log entry and pass that as a param to the decorated function, which is why you're only receiving one partition.

If you wanted to make a sensor retrieve all new event log entries you could define a @multi_asset sensor instead, something like this example.

Or, you could just use declarative automation to handle this for you.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by clairelin135
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
area: sensor Related to Sensors area: partitions Related to Partitions
2 participants