MCPcopy Create free account
hub / github.com/bigdra50/unity-cli / dequeue_command

Method dequeue_command

relay/instance_registry.py:142–148  ·  view source on GitHub ↗

Get the next command from the queue (FIFO).

(self)

Source from the content-addressed store, hash-verified

140 return True
141
142 def dequeue_command(self) -> QueuedCommand | None:
143 """Get the next command from the queue (FIFO)."""
144 if self.command_queue:
145 cmd = self.command_queue.popleft()
146 logger.debug(f"Dequeued command {cmd.request_id} for {self.instance_id} (queue size: {self.queue_size})")
147 return cmd
148 return None
149
150 def flush_queue(self, error_code: str, error_message: str) -> None:
151 """

Callers 1

_process_queueMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected