Skip to content

JobMethods

@tsed/bullmq

Usage ​

typescript
import { JobMethods } from "@tsed/bullmq";

See /packages/third-parties/bullmq/src/contracts/JobMethods.ts.

Overview ​

ts
interface JobMethods<DataType = unknown, ReturnType = unknown> {
    handle(payload: DataType, job: Job<DataType, ReturnType>): ReturnType | Promise<ReturnType>;
    jobId?(payload: DataType): string | Promise<string>;
}

handle ​

ts
handle(payload: DataType, job: Job<DataType, ReturnType>): ReturnType | Promise<ReturnType>;

jobId ​

ts
jobId?(payload: DataType): string | Promise<string>;

Released under the MIT License.