Aller au contenu principal
Version: Next

ForkOptions

Index

Properties

optionalcount

count?: number

worker num, default is os.cpus().length

optionalduration

duration?: number

optionalenv

env?: Record<string, string>

Some environments set to worker

optionalexec

exec?: string

optionallimit

limit?: number

restart limit, default is 60

optionallogger

logger?: MidwayLogger | Console

optionalrefork

refork?: boolean

refork when disconect and unexpected exit, default is true

optionalworkerInitTimeout

workerInitTimeout?: number

Worker init Timeout, default is 30s,