We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c3d63c1 commit 9f2e7fdCopy full SHA for 9f2e7fd
src/Job.ts
@@ -389,14 +389,21 @@ export class Job<DATA = unknown | void> {
389
forkHelper.path,
390
[this.attrs.name, this.attrs._id!.toString(), location],
391
{
392
- signal,
393
- ...forkHelper.options
+ ...forkHelper.options,
+ signal
394
}
395
);
396
397
child.on('close', code => {
398
stillRunning = false;
399
if (code) {
400
+ console.info(
401
+ 'fork parameters',
402
+ forkHelper,
403
+ this.attrs.name,
404
+ this.attrs._id,
405
+ location
406
+ );
407
const error = new Error(`child process exited with code: ${code}`);
408
console.warn(error.message);
409
reject(error);
0 commit comments