add restart to task workers

Signed-off-by: blakeromano-il <blake.romano@imaginelearning.com>
This commit is contained in:
blakeromano-il
2022-05-16 12:06:58 -04:00
parent 361cebfe1b
commit 633506ef06
2 changed files with 2 additions and 0 deletions
@@ -64,6 +64,7 @@ export class LocalTaskWorker {
this.logger.info(`Task worker finished: ${this.taskId}`);
} catch (e) {
this.logger.warn(`Task worker failed unexpectedly, ${e}`);
this.start(settings, options)
}
})();
}
@@ -72,6 +72,7 @@ export class TaskWorker {
this.logger.info(`Task worker finished: ${this.taskId}`);
} catch (e) {
this.start(settings, options)
this.logger.warn(`Task worker failed unexpectedly, ${e}`);
}
})();