Display recipe progress in status message

This commit is contained in:
j433866 2019-06-07 13:52:47 +01:00
parent 8c2cc5b6d2
commit ad982746dd
1 changed files with 5 additions and 1 deletions

View File

@ -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