SchemaFencedError
ClassSignature
class SchemaFencedError extends ErrorThrown 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;Parameters
- message
string - options
object - options.cause?
unknown - options.codeVersion
number
Overrides
Error.constructor
Properties
- codeVersion
numberThe schema version of the code whose write was fenced.