Skip to content
Settings

CALLOUT_FAILED — every try of a processor, criterion or function callout failed

cyoda-go version 0.9.0

CALLOUT_FAILED — a processor, criterion or function callout was tried on more than one compute member, and no try produced an answer.

HTTP: 503 Service Unavailable. Retryable: yes.

A callout is tried on one compute member after another: until one answers, until a failure forbids another try, or until the tries its retryPolicy allows are used (NONE: one try; FIXED or unset: one try plus CYODA_RETRY_FIXED_NUM_RETRIES). This code is returned when more than one try failed and nothing more could be done — every try was used, or no further compute member appeared within CYODA_DISPATCH_WAIT_TIMEOUT, or the time the callout may take ran out.

The message lists the failed tries:

CALLOUT_FAILED: the callout could not be completed, got 3 failures: [member<5f0c…>: DISPATCH_TIMEOUT: processor dispatch timed out after 30000ms: no response (2 times)], [member<->: DISPATCH_FORWARD_FAILED: forwarding the callout to a peer node failed]
  • The count is the number of failed tries. Identical entries are written once, with (k times).
  • member<id> is the id of the compute member that was tried — one of the caller’s own tenant’s connections, the id the member was given when it joined. member<-> is a try handed over to another cluster node whose answer was lost, so that the member is not known.
  • Each entry carries the error code the try would have had on its own.

When exactly one try was made and failed, that try’s own code is returned instead (errors.DISPATCH_TIMEOUT, errors.COMPUTE_MEMBER_DISCONNECTED, errors.DISPATCH_FORWARD_FAILED), not this one. When no try could be made at all, the code is errors.NO_COMPUTE_MEMBER_FOR_TAG. A compute member that answered with a failure of its own is never replaced by another: that is errors.WORKFLOW_FAILED.

A callout reaches a second compute member only where that is safe for Cyoda’s own state: always when the work provably never left the node, and after the work was handed to a member only for a criterion, a function, or a processor whose configuration declares idempotent: true.

Retryable, and retryable: true speaks for Cyoda’s state only. With a SYNC or ASYNC_SAME_TX processor the operation failed and its transaction was rolled back, so running it again starts clean — unless an earlier COMMIT_BEFORE_DISPATCH processor of the same request had already committed. With a COMMIT_BEFORE_DISPATCH processor the part of the operation before the callout stays committed. A compute member that was handed the work may have carried it out; what it did outside Cyoda is the application’s to reconcile.

  • errors
  • errors.DISPATCH_TIMEOUT
  • errors.COMPUTE_MEMBER_DISCONNECTED
  • errors.DISPATCH_FORWARD_FAILED
  • errors.NO_COMPUTE_MEMBER_FOR_TAG
  • workflows
  • config.grpc
  • cyoda 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 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 — 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.
  • cyoda help errors DISPATCH_FORWARD_FAILED — The node that owns a request hands a callout over to another cluster node when that node has a matching compute member. This code means the connection to that node was opened and then no usable answer arrived: no reply within the owner’s wait, a broken connection, a non-2xx status, or an answer that does not authenticate. The work may have been given to a compute member there, and may have run. A node that cannot be connected to at all is not this error — the next node is asked, and no try is used.
  • cyoda help errors NO_COMPUTE_MEMBER_FOR_TAG — A processor, criterion or function callout goes to a compute member of the caller’s tenant that declares at least one of the callout’s calculationNodesTags. When the node that owns the request has none, and no other cluster node advertises one that can be reached, the callout waits for one to appear — for CYODA_DISPATCH_WAIT_TIMEOUT in total (default 5s; 0 disables waiting), on a single node as in a cluster, whatever the callout’s retryPolicy. The wait ends the moment a member attaches. If none does, the operation is rejected with this error.
  • cyoda help workflows — A workflow definition is a named finite state machine attached to an entity model. Workflows are stored per model reference (entityName, modelVersion). A model may have multiple workflow definitions; the engine selects the matching one per entity using the workflow-level criterion field, on every operation that runs the entity’s workflow (see Workflow-level selection). When no criterion matches, the engine uses the default built-in workflow.
  • cyoda help config grpc — config.grpc — gRPC listener settings and compute-node credentials.