Review funkt
This commit is contained in:
24
node_modules/bullmq/dist/esm/interfaces/lock-manager-worker-context.d.ts
generated
vendored
Normal file
24
node_modules/bullmq/dist/esm/interfaces/lock-manager-worker-context.d.ts
generated
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
import { SpanKind } from '../enums';
|
||||
import { Span } from './telemetry';
|
||||
/**
|
||||
* Minimal interface that LockManager needs from Worker.
|
||||
* This allows LockManager to access worker methods without inheriting from QueueBase.
|
||||
*/
|
||||
export interface LockManagerWorkerContext {
|
||||
/**
|
||||
* Extends locks for multiple jobs.
|
||||
*/
|
||||
extendJobLocks(jobIds: string[], tokens: string[], duration: number): Promise<string[]>;
|
||||
/**
|
||||
* Emits events to worker listeners.
|
||||
*/
|
||||
emit(event: string | symbol, ...args: any[]): boolean;
|
||||
/**
|
||||
* Wraps code with telemetry tracing.
|
||||
*/
|
||||
trace<T>(spanKind: SpanKind, operation: string, destination: string, callback: (span?: Span) => Promise<T> | T): Promise<T> | T;
|
||||
/**
|
||||
* Queue name for telemetry.
|
||||
*/
|
||||
name: string;
|
||||
}
|
||||
Reference in New Issue
Block a user