Converting an AssetSelection to a list of AssetKeys #26232
Unanswered
cody-scott
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, looking for some guidance on how to convert an
AssetSelection
, with additional parameters such asdownstream
, to a list ofAssetKeys
to be passed to aRunRequest
in a sensor.Roughly I'd like to have a single sensor that checks a list of Assets to materialize, then generate a run request for the subset of assets. So, I have 5 assets checked by the sensor, but only one or two might trigger on any given evaluation.
The sticking point I am having is the
RunRequest
needs a list ofAssetKeys
, but theAssetSelection
doesn't provide that precise structure.How does one convert an
AssetSelection
to a list ofAssetKeys
to be passed to a RunRequest.Ultimately I would just like to switch to Automation Conditions and have this only need to trigger the single AssetKey at the root, but we're not there yet unfortunately.
Beta Was this translation helpful? Give feedback.
All reactions