MCPcopy Create free account
hub / github.com/ai4colonoscopy/IntelliScope / DispatchMethod

Class DispatchMethod

colongpt/serve/controller.py:25–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23
24
25class DispatchMethod(Enum):
26 LOTTERY = auto()
27 SHORTEST_QUEUE = auto()
28
29 @classmethod
30 def from_str(cls, name):
31 if name == "lottery":
32 return cls.LOTTERY
33 elif name == "shortest_queue":
34 return cls.SHORTEST_QUEUE
35 else:
36 raise ValueError(f"Invalid dispatch method")
37
38
39@dataclasses.dataclass

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected