﻿# CONSISTENCY_TIME_UNAVAILABLE — the store could not provide a consistency time in time

To give a consistency time, the store waits for your tenants saves that are in their commit phase to finish. That normally takes milliseconds. When a sav…

<em>cyoda-go version <a href="https://github.com/Cyoda/cyoda-go/releases/tag/v0.9.0">0.9.0</a></em>

# errors.CONSISTENCY_TIME_UNAVAILABLE

## NAME

CONSISTENCY_TIME_UNAVAILABLE — the store could not certify a consistency time within its wait budget.

## SYNOPSIS

HTTP: `503` `Service Unavailable`. Retryable: `yes`.

## DESCRIPTION

To give a consistency time, the store waits for your tenant's saves that are in their commit phase to finish. That normally takes milliseconds. When a save stays in its commit phase longer than the store's wait budget, the request is refused rather than answered with an instant that could still change. The budget is 10 seconds on postgres (or `CYODA_POSTGRES_STATEMENT_TIMEOUT` when lower) and up to the engine's 11-second store-call deadline on sqlite; memory never waits. A read returns nothing; an async search submit creates no job.

Raised by `GET /api/entity/consistency-time`, by an async search submitted without `pointInTime`, and by any read with a `pointInTime` that is not already known to be at or before the consistency time. No `Retry-After` header is sent; retry with back-off, for example starting at 100 ms and doubling. Repeated occurrences mean a commit is stalling — for example a node that died mid-commit; on postgres such a session ends within seconds.

## SEE ALSO

- errors
- errors.POINT_IN_TIME_AFTER_CONSISTENCY_TIME
- errors.STORAGE_UNAVAILABLE
- crud

## See also

- [`cyoda help errors`](/help/errors/) — Every error response from the Cyoda REST API carries a structured `errorCode` in the `properties` object. Multiple codes may share the same HTTP status. Programmatic handling keys on `errorCode`, not HTTP status.
- [`cyoda help errors POINT_IN_TIME_AFTER_CONSISTENCY_TIME`](/help/errors/point_in_time_after_consistency_time/) — A read with `pointInTime` returns the data as at that instant, and that answer never changes afterwards. That holds only for an instant at or before the **consistency time**: the instant up to which every save is final. A later instant could still gain saves, so the read is refused instead of answered. An instant at or before the store's clock is never refused: the store waits for the saves still committing. Only an instant later than the store's clock is refused — a future instant, or one from a client clock running ahead of the store's.
- [`cyoda help errors STORAGE_UNAVAILABLE`](/help/errors/storage_unavailable/) — Raised in three cases, all transient:
- [`cyoda help crud`](/help/crud/) — Entities are instances of models. Each entity has a UUID, a model reference (`entityName`, `modelVersion`), and a lifecycle state managed by the workflow engine. Creating an entity requires the referenced model to be in `LOCKED` state. All write operations run within a Cyoda transaction and return a `transactionId` alongside the affected entity IDs.

## Raw formats

- [`/help/errors/consistency_time_unavailable.json`](/help/errors/consistency_time_unavailable.json) — full descriptor (matches `GET /help/{topic}` envelope)
- [`/help/errors/consistency_time_unavailable.md`](/help/errors/consistency_time_unavailable.md) — body only