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 journal key for the step at |
|
Build the journal key for what the agent run |
Module Contents¶
- airflow.providers.common.ai.durable.base.build_step_key(run, position)[source]¶
Build the journal key for the step at
positionof the agent runrun.
- airflow.providers.common.ai.durable.base.build_run_meta_key(run)[source]¶
Build the journal key for what the agent run
runkeeps about itself across attempts.
- class airflow.providers.common.ai.durable.base.DurableStorageProtocol[source]¶
Bases:
ProtocolPersistence contract shared by the durable execution storage backends.
Implemented by
DurableStorage(ObjectStorage, Airflow < 3.3) andTaskStateStoreDurableStorage(AIP-103 task state store, Airflow >= 3.3). The journal depends on this interface, not a concrete backend.An entry is a JSON-compatible dict.
save_stepreturns whether the entry was written: a backend may skip a write (a value it cannot store, a store write that fails) without failing the step, which then runs again on retry.