amoghrajesh commented on code in PR #68886: URL: https://github.com/apache/airflow/pull/68886#discussion_r3457753769
########## airflow-core/docs/core-concepts/asset-state-store.rst: ########## @@ -37,6 +37,8 @@ When is ``asset_state_store`` available? When using asset state store within a task, ``context["asset_state_store"]`` is populated for **concrete** :class:`~airflow.sdk.definitions.asset.Asset` inlets and outlets. A task must declare at least one concrete inlet or outlet for ``asset_state_store`` to contain any entries. +If a task has no inlets or outlets and accesses ``context["asset_state_store"]``, a ``KeyError`` is raised at runtime. Declare at least one asset inlet or outlet on the task to use asset state store. Review Comment: Yeah sure, handled it now. The examples show both patterns now. Check [comments from wei](https://github.com/apache/airflow/pull/68886/commits/ec7b859459c471ed681f74ad5342a34e1efc67d7) -- 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]
