JobMethods
@tsed/bullmq
Usage
typescript
import { JobMethods } from "@tsed/bullmq";
See /packages/third-parties/bullmq/src/types/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>;