guan404ming commented on code in PR #68232:
URL: https://github.com/apache/airflow/pull/68232#discussion_r3527362938
##########
task-sdk/src/airflow/sdk/execution_time/context.py:
##########
@@ -579,9 +609,19 @@ def set(self, key: str, value: JsonValue, *, retention:
timedelta | None = None)
- ``NEVER_EXPIRE`` — key never expires, regardless of the global
config and is skipped by garbage collection.
- ``None`` (default) — use the global ``[state_store]
default_retention_days`` config.
"""
- from airflow.sdk.execution_time.comms import SetTaskStateStore
from airflow.sdk.execution_time.task_runner import SUPERVISOR_COMMS
+ SUPERVISOR_COMMS.send(self._build_set_message(key, value, retention))
+
+ async def aset(self, key: str, value: JsonValue, *, retention: timedelta |
None = None) -> None:
Review Comment:
Verified and added `test_aset_returns_reference_to_storage` and
`test_aget_resolves_reference_to_actual_value`, exercising aget/aset `against
InMemoryStoreBackend` which overrides the `serialize/deserialize` hooks.
--
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]