Add queue rendering cycle

This commit is contained in:
Anton Vakhrushev 2020-03-31 12:42:22 +03:00
parent 0ffbf1c1a9
commit 0535204b97

View File

@ -31,7 +31,11 @@ export default class Scheduler {
async run() { async run() {
await sleepShort(); await sleepShort();
markPage('Executor', this.version); markPage('Executor', this.version);
setInterval(() => {
this.log('RENDER TASK QUEUE');
new TaskQueueRenderer().render(this.taskQueue.seeItems()); new TaskQueueRenderer().render(this.taskQueue.seeItems());
}, 1000);
while (true) { while (true) {
await this.doLoopStep(); await this.doLoopStep();