Fix uniq tasks start time
This commit is contained in:
parent
153e31463c
commit
bf7f4c1b7d
@ -47,7 +47,7 @@ export class Scheduler {
|
|||||||
private scheduleUniqTask(seconds: number, name: string, args: Args = {}) {
|
private scheduleUniqTask(seconds: number, name: string, args: Args = {}) {
|
||||||
const taskScheduler = () => {
|
const taskScheduler = () => {
|
||||||
if (!this.taskQueue.hasNamed(name)) {
|
if (!this.taskQueue.hasNamed(name)) {
|
||||||
this.taskQueue.push(new Command(name, args), timestamp());
|
this.taskQueue.push(new Command(name, args), timestamp() + 10 * 60);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
taskScheduler();
|
taskScheduler();
|
||||||
|
Loading…
Reference in New Issue
Block a user