From bf7f4c1b7d57bdb0e88f5c8551810d943b87b63b Mon Sep 17 00:00:00 2001 From: Anton Vakhrushev Date: Sat, 4 Apr 2020 15:58:06 +0300 Subject: [PATCH] Fix uniq tasks start time --- src/Scheduler.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Scheduler.ts b/src/Scheduler.ts index c4b91b2..7096278 100644 --- a/src/Scheduler.ts +++ b/src/Scheduler.ts @@ -47,7 +47,7 @@ export class Scheduler { private scheduleUniqTask(seconds: number, name: string, args: Args = {}) { const taskScheduler = () => { if (!this.taskQueue.hasNamed(name)) { - this.taskQueue.push(new Command(name, args), timestamp()); + this.taskQueue.push(new Command(name, args), timestamp() + 10 * 60); } }; taskScheduler();