From 9546c1dae025be660ceff5c323eda00a88fe241a Mon Sep 17 00:00:00 2001 From: Anton Vakhrushev Date: Mon, 20 Apr 2020 09:51:06 +0300 Subject: [PATCH] Revert changes --- src/Executor.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Executor.ts b/src/Executor.ts index 1cf9a6a..4b4137f 100644 --- a/src/Executor.ts +++ b/src/Executor.ts @@ -40,6 +40,8 @@ export class Executor { } private async doTaskProcessingStep() { + await sleepMicro(); + const currentTs = timestamp(); const taskCommand = this.scheduler.nextTask(currentTs); @@ -47,7 +49,6 @@ export class Executor { if (!taskCommand) { this.logger.log('NO ACTIVE TASK'); this.scheduler.clearActions(); - await sleepMicro(); return; }