Browse Source

Retry on 'open(std_input.c_str(), O_RDONLY) No such file or directory' error

master
Menci 6 years ago
parent
commit
aab90216b9
  1. 4
      src/runner/rmq.ts

4
src/runner/rmq.ts

@ -51,7 +51,9 @@ export async function waitForTask(handle: (task: RPCRequest) => Promise<any>) {
winston.warn(errorMessage);
// Only retry on 'Error: The child process has exited unexpectedly.'
if (errorMessage.indexOf('Error: The child process has exited unexpectedly.') !== -1) {
// or 'Error: The child process has reported the following error: `open(std_input.c_str(), O_RDONLY)`@../native/sandbox.cc,51: No such file or directory'.
if (errorMessage.indexOf('Error: The child process has exited unexpectedly.') !== -1
|| errorMessage.indexOf('open(std_input.c_str(), O_RDONLY)') !== -1) {
winston.warn('Retrying.');
continue;
}

Loading…
Cancel
Save