Skip to content

basalt / queue/src / DuplicateJobError

Class: DuplicateJobError ​

Defined in: queue/src/manager.ts:52

Two DIFFERENT job definitions were registered under the same name. The worker looks a job up by name, so the second one used to replace the first silently — its handler then ran for both producers.

Extends ​

Constructors ​

Constructor ​

> new DuplicateJobError(job): DuplicateJobError

Defined in: queue/src/manager.ts:54

Parameters ​

job ​

string

Returns ​

DuplicateJobError

Overrides ​

BasaltError.constructor

Properties ​

code ​

> readonly code: string

Defined in: core/src/errors.ts:25

Inherited from ​

BasaltError.code


details? ​

> readonly optional details?: Record<string, unknown>

Defined in: core/src/errors.ts:28

Structured payload passed to the constructor, exactly as given (never sanitised here).

Inherited from ​

BasaltError.details


status ​

> readonly status: 500 = 500

Defined in: queue/src/manager.ts:53

Released under the MIT License.