Skip to content

Commit

Permalink
[FIX] Next schedule check for Apps (#27240)
Browse files Browse the repository at this point in the history
  • Loading branch information
sampaiodiego authored and ggazzo committed Nov 14, 2022
1 parent 21ca26c commit 7a8cef8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/meteor/app/apps/server/bridges/scheduler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ export class AppSchedulerBridge extends SchedulerBridge {
}

private async scheduleOnceAfterRegister(job: IOnetimeSchedule, appId: string): Promise<void | string> {
const scheduledJobs = await this.scheduler.jobs({ name: job.id, type: 'normal' });
const scheduledJobs = await this.scheduler.jobs({ name: job.id, type: 'normal' }, {}, 1);
if (!scheduledJobs.length) {
return this.scheduleOnce(job, appId);
}
Expand Down

0 comments on commit 7a8cef8

Please sign in to comment.