MCPcopy Create free account
hub / github.com/bugy/script-server / cleanup_execution

Method cleanup_execution

src/execution/execution_service.py:208–220  ·  view source on GitHub ↗
(self, execution_id, user)

Source from the content-addressed store, hash-verified

206 return getter(info)
207
208 def cleanup_execution(self, execution_id, user):
209 try:
210 self.validate_execution_id(execution_id, user)
211 except NotFoundException:
212 return
213
214 executor = self._executors.get(execution_id)
215
216 if not executor.is_finished():
217 raise Exception('Executor ' + execution_id + ' is not yet finished')
218
219 executor.cleanup()
220 self._active_executor_ids.remove(execution_id)
221
222 def add_finish_listener(self, callback, execution_id=None):
223 if execution_id is None:

Callers 7

cleanupMethod · 0.80
tearDownMethod · 0.80
tearDownMethod · 0.80
tearDownMethod · 0.80
postMethod · 0.80

Calls 5

validate_execution_idMethod · 0.95
removeMethod · 0.80
getMethod · 0.45
is_finishedMethod · 0.45
cleanupMethod · 0.45

Tested by 5

tearDownMethod · 0.64
tearDownMethod · 0.64
tearDownMethod · 0.64