Zowe CLI looping in node.js task when interrupted. #1749
Labels
bug
Something isn't working
priority-low
Legit issue but cosmetic or nice-to-have
severity-medium
Bug where workaround exists or that doesn't prevent the usage of Zowe. Just makes it more complex.
When a Zowe command is interrupted from a VScode extension, the related node.js task is not killed but starting to loop and using up t0 20% cpu.
In our local VScode extention we use Javascript function execSync with time out to issue Zowe CLI commands like:
const options = {
timeout: 20000
};
let command = 'zowe zos-tso send address-space asName --data "exec 'HIQ.MEQ.LOWQ(REXXPRG)' 'PARM1,PARM2,PARM3' exec" --reject-unauthorized false --response-format-json'
let response = execSync(command, options).toString().trim();
If the command isn't returning any response within 20 seconds or if VScode is closed while the command is awaiting, then a node.js task is left running on the local machine and after a short while the cpu consumption is raising to 15-20% per node.js task.
Details about the behavior:
My environment
The text was updated successfully, but these errors were encountered: