Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/omkarcloud/botasaurus
/ _isMaster
Function
_isMaster
js/botasaurus-server-js/src/env.ts:3–6 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
1
const
isInKubernetes: boolean =
'KUBERNETES_SERVICE_HOST'
in process.env;
2
3
function
_isMaster() {
4
const
args = process.argv;
5
return
args.includes(
'--master'
)
6
}
7
8
function
_isWorker() {
9
const
args = process.argv;
Callers
1
env.ts
File · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected