MCPcopy Index your code
hub / github.com/HelloZeroNet/ZeroNet / getMaxWorkers

Method getMaxWorkers

src/Worker/WorkerManager.py:145–149  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

143 self.startWorkers(reason="More peers found")
144
145 def getMaxWorkers(self):
146 if len(self.tasks) > 50:
147 return config.workers * 3
148 else:
149 return config.workers
150
151 # Add new worker
152 def addWorker(self, peer, multiplexing=False, force=False):

Callers 4

checkTasksMethod · 0.95
addWorkerMethod · 0.95
startWorkersMethod · 0.95
removeWorkerMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected