10 Feb 2025 09:01 AM
Solved! Go to Solution.
10 Feb 2025 02:02 PM - edited 10 Feb 2025 02:02 PM
As far as I know, process.exit() is not supported by our runtime.
I would recommend doing this via Run JavaScript and "return":
export default async function ({ executionId }) {
let x = 1;
while (x > 0) {
console.log(x);
x++;
if (x > 10) {
console.log('Exiting...');
return;
}
}}
10 Feb 2025 02:28 PM
Hi Christian,
Clear, so if you are in a subroutine you can only do a return out of that routine to prevent spaghetti (-;
KR Henk