MCPcopy Index your code
hub / github.com/omkarcloud/botasaurus / getExecutor

Function getExecutor

js/botasaurus-server-js/src/executor.ts:11–25  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

9 * In standalone mode, returns a lazy-initialized default TaskExecutor.
10 */
11export function getExecutor(): TaskExecutor {
12 // K8s mode: use globally configured executor
13 // @ts-ignore
14 if (global.executor) {
15 // @ts-ignore
16 return global.executor;
17 }
18
19 // Standalone mode: lazy-initialize default executor
20 if (_defaultExecutor === null) {
21 _defaultExecutor = new TaskExecutor();
22 }
23
24 return _defaultExecutor;
25}
26
27export { TaskExecutor };

Callers 6

restoreCapacityFunction · 0.90
scrapingFunctionFunction · 0.90
registerMasterRoutesFunction · 0.90
registerHealthEndpointFunction · 0.90
runFunction · 0.90
performCompleteTaskFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected