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 Nov 11, 2022
1 parent e316d3c commit 1c5f950
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 1c5f950

Please sign in to comment.