hi all, i've built a job status sensor and am seei...
# ask-community
l
hi all, i've built a job status sensor and am seeing that occasionally, the value of
context.dagster_run.asset_selection
is
None
- under what circumstance would this happen?
🤖 1
s
The
asset_selection
field is only populated when a job is created as a subset-- it doesn’t reflect the set of assets used to create the job with
define_asset_job
. So you will see this pretty frequently. (We realize this is confusing and are looking at improving this).
l
hmm, i see - any fish-hooks to be aware of if I fall back to looking up the job by name and using
JobDefinition.asset_layer.asset_keys
?
experiementally, this one is populated on runs initiated by a schedule.