Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/linuxfoundation/crowd.dev
/ isWorkerAvailable
Function
isWorkerAvailable
backend/src/bin/nodejs-worker.ts:131–131 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
129
130
let
processingMessages = 0
131
const
isWorkerAvailable = (): boolean => processingMessages <= 3
132
const
addWorkerJob = (): void => {
133
processingMessages++
134
}
Callers
1
handleMessages
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected