airflow.providers.common.ai.durable.base¶
Shared interface for durable execution storage backends.
Attributes¶
Classes¶
Persistence contract shared by the durable execution storage backends. |
Functions¶
|
Build the durable cache key for the model response produced at |
|
Build the durable cache key for the tool result produced at |
Module Contents¶
- airflow.providers.common.ai.durable.base.build_model_step_key(step)[source]¶
Build the durable cache key for the model response produced at
step.
- airflow.providers.common.ai.durable.base.build_tool_step_key(step)[source]¶
Build the durable cache key for the tool result produced at
step.
- class airflow.providers.common.ai.durable.base.DurableStorageProtocol[source]¶
Bases:
ProtocolPersistence contract shared by the durable execution storage backends.
Implemented by both
DurableStorage(ObjectStorage, Airflow < 3.3) andTaskStateStoreDurableStorage(AIP-103 task state store, Airflow >= 3.3).CachingModelandCachingToolsetdepend on this interface, not a concrete backend.Both
save_*methods return whether the entry was written. A backend may skip a write (a tool result that is not JSON-serializable, a store write that fails) without failing the step; the step then re-runs live on retry, and the caller counts it as skipped rather than cached.