MCPcopy
hub / github.com/apache/caldera / add_executor

Method add_executor

app/objects/c_ability.py:155–164  ·  view source on GitHub ↗

Add executor to map If the executor exists, delete the current entry and add the new executor to the bottom for FIFO

(self, executor)

Source from the content-addressed store, hash-verified

153 return executors
154
155 def add_executor(self, executor):
156 """Add executor to map
157
158 If the executor exists, delete the current entry and add the
159 new executor to the bottom for FIFO
160 """
161 map_key = self._make_executor_map_key(executor.name, executor.platform)
162 if map_key in self._executor_map:
163 del self._executor_map[map_key]
164 self._executor_map[map_key] = executor
165
166 def add_executors(self, executors):
167 """Create executor map from list of executor objects"""

Callers 1

add_executorsMethod · 0.95

Calls 1

Tested by

no test coverage detected