Skip to content

Commit 9f2e7fd

Browse files
committed
fix: add fork paramters to console
1 parent c3d63c1 commit 9f2e7fd

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

src/Job.ts

+9-2
Original file line numberDiff line numberDiff line change
@@ -389,14 +389,21 @@ export class Job<DATA = unknown | void> {
389389
forkHelper.path,
390390
[this.attrs.name, this.attrs._id!.toString(), location],
391391
{
392-
signal,
393-
...forkHelper.options
392+
...forkHelper.options,
393+
signal
394394
}
395395
);
396396

397397
child.on('close', code => {
398398
stillRunning = false;
399399
if (code) {
400+
console.info(
401+
'fork parameters',
402+
forkHelper,
403+
this.attrs.name,
404+
this.attrs._id,
405+
location
406+
);
400407
const error = new Error(`child process exited with code: ${code}`);
401408
console.warn(error.message);
402409
reject(error);

0 commit comments

Comments
 (0)