Provide notification when new flows deployed in the background

This commit is contained in:
Nick O'Leary
2017-03-17 21:29:03 +00:00
parent fb24dca019
commit b9379f2ddf
5 changed files with 54 additions and 4 deletions

View File

@@ -135,10 +135,14 @@ function setFlows(_config,type,muteLog) {
if (started) {
return stop(type,diff,muteLog).then(function() {
context.clean(activeFlowConfig);
start(type,diff,muteLog);
start(type,diff,muteLog).then(function() {
events.emit("runtime-event",{id:"runtime-deploy",revision:flowRevision});
});
return flowRevision;
}).otherwise(function(err) {
})
} else {
events.emit("runtime-event",{id:"runtime-deploy",revision:flowRevision});
}
});
}