From 0535204b97d03476efc80bc84b9cdec9b67ae2b5 Mon Sep 17 00:00:00 2001 From: Anton Vakhrushev Date: Tue, 31 Mar 2020 12:42:22 +0300 Subject: [PATCH] Add queue rendering cycle --- src/Scheduler.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Scheduler.ts b/src/Scheduler.ts index 9ff5578..a02e670 100644 --- a/src/Scheduler.ts +++ b/src/Scheduler.ts @@ -31,7 +31,11 @@ export default class Scheduler { async run() { await sleepShort(); markPage('Executor', this.version); - new TaskQueueRenderer().render(this.taskQueue.seeItems()); + + setInterval(() => { + this.log('RENDER TASK QUEUE'); + new TaskQueueRenderer().render(this.taskQueue.seeItems()); + }, 1000); while (true) { await this.doLoopStep();