MCPcopy 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
130let processingMessages = 0
131const isWorkerAvailable = (): boolean => processingMessages <= 3
132const addWorkerJob = (): void => {
133 processingMessages++
134}

Callers 1

handleMessagesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected