﻿# CALLOUT_SUPERSEDED — this compute node was replaced, or its callout has ended

A compute node receives a transaction token with each processor, criterion or function request, and presents it on the API requests it makes while it work…

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

# errors.CALLOUT_SUPERSEDED

## NAME

CALLOUT_SUPERSEDED — a request carrying a transaction token was refused because the processor, criterion or function request it belongs to is no longer this compute node's.

## SYNOPSIS

HTTP: `410` `Gone`. Retryable: `no`.

## DESCRIPTION

A compute node receives a transaction token with each processor, criterion or function request, and presents it on the API requests it makes while it works. The token is valid for that one request on that one compute node. This error fires when the token is presented after cyoda gave the same work to another compute node — because this one did not answer within its answer limit, or its connection dropped — or after the request ended: answered, failed or abandoned. The transaction itself is still open; once it has ended the answer is `TRANSACTION_NOT_FOUND` instead.

The request is refused before it reads or writes anything. A request that was already reading or writing when the work moved on runs to its end, and is then discarded and answered with this error: none of its writes are kept, except a schema extension it made, which stays (`cyoda help models`, SCHEMA EXTENSION). On the in-tree backends (memory, SQLite, PostgreSQL) the work goes on only once that request has ended. On a backend with location-independent transactions nothing waits for it: the work goes on at once, and the request is refused completion when it ends.

A compute node that receives this error must stop working on that request: nothing further it sends under that token is accepted, and its answer is discarded. Whatever it did outside cyoda before it was replaced is the application's to reconcile; a processor declared `idempotent` promises that a repeat on another compute node is safe.

Not retryable. Over gRPC the code is the message prefix of the `CLIENT_ERROR` envelope.

## SEE ALSO

- errors
- errors.TRANSACTION_NOT_FOUND
- errors.TRANSACTION_EXPIRED
- errors.DISPATCH_TIMEOUT
- errors.COMPUTE_MEMBER_DISCONNECTED

## 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 TRANSACTION_NOT_FOUND`](/help/errors/transaction_not_found/) — The transaction ID supplied in the request does not correspond to an active transaction. The transaction may have been committed, rolled back, expired, or may never have existed. Also occurs when a request is mis-routed to a node that never opened the transaction.
- [`cyoda help errors TRANSACTION_EXPIRED`](/help/errors/transaction_expired/) — Transaction tokens are short-lived bearer tokens issued when a transaction is opened. This error fires when the token's `exp` claim is in the past at the time the proxy validates it. The transaction itself may still be active server-side, but the token is no longer valid for routing.
- [`cyoda help errors DISPATCH_TIMEOUT`](/help/errors/dispatch_timeout/) — The answer limit is the callout's own `responseTimeoutMs` (a field on the processor, criterion or function config), or `CYODA_CALLOUT_RESPONSE_TIMEOUT_MS` when that is not set.
- [`cyoda help errors COMPUTE_MEMBER_DISCONNECTED`](/help/errors/compute_member_disconnected/) — The compute member chosen for a callout disconnected — before it was handed the work, or after it and before it answered. In the second case the work may or may not have been carried out.

## Raw formats

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