335 workflow implement workflow cron triggers backend (#9988)
[Backend side] Add cron triggers to workflow Closes https://github.com/twentyhq/core-team-issues/issues/335
This commit is contained in:
@ -19,12 +19,12 @@ export class CleanSuspendedWorkspacesCronCommand extends CommandRunner {
|
||||
}
|
||||
|
||||
async run(): Promise<void> {
|
||||
await this.messageQueueService.addCron<undefined>(
|
||||
CleanSuspendedWorkspacesJob.name,
|
||||
undefined,
|
||||
{
|
||||
await this.messageQueueService.addCron<undefined>({
|
||||
jobName: CleanSuspendedWorkspacesJob.name,
|
||||
data: undefined,
|
||||
options: {
|
||||
repeat: { pattern: cleanSuspendedWorkspaceCronPattern },
|
||||
},
|
||||
);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user