Documents for @litert/xxl-job-integration / JobRunner/NodeJsInProcess / IRunnerOptions
Interface: IRunnerOptions
Defined in: src/lib/JobRunner/NodeJsInProcess.ts:39
The options for the Node.js script runner.
Properties
cacheTtl?
optionalcacheTtl:number
Defined in: src/lib/JobRunner/NodeJsInProcess.ts:53
The time-to-live (TTL) of each cached script in seconds.
Default
3600 (30 minutes)envData?
optionalenvData:IScriptEnvData| () =>IScriptEnvData
Defined in: src/lib/JobRunner/NodeJsInProcess.ts:46
The (generator of) environment data that will be passed to the js script when it is executed.
Default
() => {}gcReservedPercentage?
optionalgcReservedPercentage:number
Defined in: src/lib/JobRunner/NodeJsInProcess.ts:68
How many percentage of the cached scripts should be kept when the garbage collector runs due to the cache size limit.
Default
60%gcRunRatio?
optionalgcRunRatio:number
Defined in: src/lib/JobRunner/NodeJsInProcess.ts:82
The ratio of the garbage collector to run.
Default
0.5maxCacheScripts?
optionalmaxCacheScripts:number
Defined in: src/lib/JobRunner/NodeJsInProcess.ts:60
The maximum quantity of the cache for the scripts.
Default
100maxQueueDepth?
optionalmaxQueueDepth:number
Defined in: src/lib/JobRunner/NodeJsInProcess.ts:75
The maximum queue depth for the job handlers.
Default
10