MCPcopy
hub / github.com/gpustack/gpustack / put

Method put

gpustack/scheduler/queue.py:13–19  ·  view source on GitHub ↗
(self, item)

Source from the content-addressed store, hash-verified

11 self.lock = asyncio.Lock()
12
13 async def put(self, item):
14 async with self.lock:
15 if item not in self.set:
16 self.set.add(item)
17 await self.queue.put(item)
18 else:
19 logger.debug(f"Item {item.__hash__()} already in queue.")
20
21 async def get(self):
22 item = await self.queue.get()

Callers 15

updateMethod · 0.45
updateMethod · 0.45
updateMethod · 0.45
updateMethod · 0.45
updateMethod · 0.45
updateMethod · 0.45
updateMethod · 0.45
updateMethod · 0.45
_evaluateMethod · 0.45
read_to_queueFunction · 0.45
handle_dataMethod · 0.45
closeMethod · 0.45

Calls 2

addMethod · 0.45
__hash__Method · 0.45

Tested by

no test coverage detected