Leo Qin
08/25/2023, 6:33 PMRunRequest
that does nothing? It seems that a sensor's cursor is advanced only if a RunRequest is returned. However, we have a few use cases where we'd like to run a function (slack notification) in response to a multi-asset sensor, but have no associated jobs or assets to run.Zach
08/25/2023, 6:37 PMcontext.update_cursor
not work if you don't yield a RunRequest
? I was under the impression that it does, regardless of if you yield a SkipReason or a RunRequestZach
08/25/2023, 6:39 PMjamie
08/25/2023, 6:58 PMcontext.update_cursor
should do the trickLeo Qin
08/25/2023, 7:13 PMadvance_all_cursors
, is that different from context.update_cursor
?jamie
08/25/2023, 7:32 PMLeo Qin
08/25/2023, 7:51 PMmulti_asset_sensor
decorator to create a sensor that listens on the configured set of assets.
Each sensor tick, if all of the assets have materialized at least once since the last time the sensor fired, it will execute a a user-provided function (with the expectation that the function is lightweight, disposable, stateless, etc... primarily will be notification-related), plus optionally returning a RunRequest
to initiate runs of the configured jobs or request assets for that multi-asset sensor.
It actually works fine if someone configures a job or request asset, but I noticed that when neither is provided, the user-provided function executes every tick if all of the monitored assets have materialized at least once, and none of the monitored assets have materialized since the last time that all of them were materialized.jamie
08/25/2023, 8:09 PMSkipReason
in that case not work?Leo Qin
08/25/2023, 8:31 PMjamie
08/25/2023, 8:32 PMjamie
08/25/2023, 8:32 PMLeo Qin
08/25/2023, 8:33 PMjamie
08/25/2023, 8:34 PM