MCPcopy Create free account
hub / github.com/omkarcloud/botasaurus / _isWorker

Function _isWorker

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

Source from the content-addressed store, hash-verified

6}
7
8function _isWorker() {
9 const args = process.argv;
10 return args.includes('--worker')
11}
12
13const isWorker: boolean = _isWorker();
14const isMaster: boolean = _isMaster();

Callers 1

env.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected