Skip to content

Commit

Permalink
Added Flow.restart() method.
Browse files Browse the repository at this point in the history
  • Loading branch information
petersirka committed Nov 13, 2023
1 parent d203f9f commit bbd6a23
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions flow.js
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,18 @@ FS.notify = function(controller, id) {
$.success();
};

FS.restart = function(id) {
let item = FS.instances[id];
if (item) {
if (item.flow) {
if (item.flow.terminate)
item.flow.terminate();
else
item.flow.kill(9);
return true;
}
}
};

function initping() {

Expand Down

0 comments on commit bbd6a23

Please sign in to comment.