Task State Store
class TaskStateStore
Key-value state scoped to one task instance, shared across its retries within the same Dag run.
Values must be JSON-serializable. Every key has an expiry: by default the deployment's [state_store] default_retention_days, which the coordinator passes to the JVM as AIRFLOW__STATE_STORE__DEFAULT_RETENTION_DAYS; set also takes an explicit retention, or NEVER_EXPIRE for a key that garbage collection skips.
Values are stored in the metadata database as-is; the [workers] state_store_backend used by Python tasks is not applied here.