amoghrajesh commented on code in PR #66160:
URL: https://github.com/apache/airflow/pull/66160#discussion_r3194350756
##########
scripts/ci/prek/check_template_context_variable_in_sync.py:
##########
@@ -48,6 +48,9 @@
"data_interval_start",
"prev_data_interval_start_success",
"prev_data_interval_end_success",
+ # AIP-103: task_state/asset_state aren't documented yet. Will be done in a
later PR.
+ "task_state",
+ "asset_state",
Review Comment:
Yes exactly, `asset_state` (singular) is intentional.
`context["asset_state"][MY_ASSET].get(...)` is accessing the state scoped to
one asset, so singular fits. The container just routes you to the right
accessor.
`context[Asset(...)]["asset_state"]` would be a bigger API change and
doesn't add much tbh
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]