From ad982746ddcea9809142711fb0af6af72cea8ccf Mon Sep 17 00:00:00 2001 From: j433866 Date: Fri, 7 Jun 2019 13:52:47 +0100 Subject: [PATCH] Display recipe progress in status message --- src/core/Recipe.mjs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/core/Recipe.mjs b/src/core/Recipe.mjs index a11b4d02..4489756e 100755 --- a/src/core/Recipe.mjs +++ b/src/core/Recipe.mjs @@ -200,7 +200,11 @@ class Recipe { try { input = await dish.get(op.inputType); - log.debug("Executing operation"); + log.debug(`Executing operation '${op.name}'`); + + if (ENVIRONMENT_IS_WORKER()) { + self.sendStatusMessage(`Baking... (${i+1}/${this.opList.length})`); + } if (op.flowControl) { // Package up the current state