SchemaFencedError

Class

Signature

class SchemaFencedError extends Error

core/src/errors.ts:142

Thrown when a write is fenced: a breaking migration dropped the write fence of this code version, so older code can no longer change jobs, blockers or workers. The write changes nothing. Worker runners report it through workerError and keep retrying. On Redis it is also thrown until migrateToLatest() has run.

Constructor

Signature

new SchemaFencedError(message, options): SchemaFencedError;

core/src/errors.ts:146

Parameters

  • message
    string
  • options
    object
  • options.cause?
    unknown
  • options.codeVersion
    number

Overrides

Error.constructor

Properties

  • codeVersion
    number

    The schema version of the code whose write was fenced.

Used in guides

esc

Search guides, integrations and every exported symbol.

↑ ↓ to navigate↵ to open