MCPcopy Create free account
hub / github.com/PaddlePaddle/FastDeploy / execute

Method execute

tests/scheduler/test_splitwise_scheduler.py:65–77  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

63 return self
64
65 def execute(self) -> list[Any]:
66 results = []
67 for name, params in self._commands:
68 if name == "lpush":
69 key, values = params
70 result = self._client.lpush(key, *values)
71 results.append(result)
72 elif name == "expire":
73 key, ttl = params
74 result = self._client.expire(key, ttl)
75 results.append(result)
76 self._commands.clear()
77 return results
78
79 class _FakeRedis:
80 def __init__(self, *args: Any, **kwargs: Any) -> None:

Callers 4

rpushMethod · 0.45
zincrbyMethod · 0.45
lpopMethod · 0.45
runMethod · 0.45

Calls 3

lpushMethod · 0.45
expireMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected