ForkedCaptureOptions
Defined in: packages/core/src/capture/forked/forked-capture.ts:25
Options of createForkedCaptureHandler.
Properties
Section titled “Properties”crashLimit?
Section titled “crashLimit?”
optionalcrashLimit?:number
Defined in: packages/core/src/capture/forked/forked-capture.ts:33
Non-zero exits within crashWindowMs that trip the fallback (default 3).
crashWindowMs?
Section titled “crashWindowMs?”
optionalcrashWindowMs?:number
Defined in: packages/core/src/capture/forked/forked-capture.ts:34
fallback
Section titled “fallback”fallback:
KindHandler
Defined in: packages/core/src/capture/forked/forked-capture.ts:29
Runs jobs in this process when forking stops being viable.
leaseMs?
Section titled “leaseMs?”
optionalleaseMs?:number
Defined in: packages/core/src/capture/forked/forked-capture.ts:31
Longest a pushed job may go without progress before the child is declared hung and killed (0 disables).
logger?
Section titled “logger?”
optionallogger?:Logger
Defined in: packages/core/src/capture/forked/forked-capture.ts:44
maxRetries?
Section titled “maxRetries?”
optionalmaxRetries?:number
Defined in: packages/core/src/capture/forked/forked-capture.ts:38
Retries assumed for jobs that do not state maxAttempts (the consumer’s maxRetries).
onCrashed?
Section titled “onCrashed?”
optionalonCrashed?: (job,error) =>Promise<void>
Defined in: packages/core/src/capture/forked/forked-capture.ts:43
The child kept dying on this job’s last attempt, so it never recorded the failure: write it (the build, or the shard, fails). Runs before the job is failed on the queue.
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”Promise<void>
restartDelayMs?
Section titled “restartDelayMs?”
optionalrestartDelayMs?:number
Defined in: packages/core/src/capture/forked/forked-capture.ts:36
Delay before pushing again after a crash (default 250 ms).
spawn: () =>
ChildProcessHandle
Defined in: packages/core/src/capture/forked/forked-capture.ts:27
Start the capture child. Throwing counts as “fork failed” and trips the fallback.