* Add cron to message queue interfaces * Add command to launch cron job * Add command to stop cron job * Update clean inactive workspaces job * Isolate cron mechanism * Code review returns * Remove useless object.assign * Add MessageQueuCronJobData interface * Rename cron job utils * Fix typing
14 lines
308 B
TypeScript
14 lines
308 B
TypeScript
export interface MessageQueueJob<T extends MessageQueueJobData> {
|
|
handle(data: T): Promise<void> | void;
|
|
}
|
|
|
|
export interface MessageQueueCronJobData<
|
|
T extends MessageQueueJobData | undefined,
|
|
> {
|
|
handle(data: T): Promise<void> | void;
|
|
}
|
|
|
|
export interface MessageQueueJobData {
|
|
[key: string]: any;
|
|
}
|