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

Method close

app/objects/c_operation.py:227–238  ·  view source on GitHub ↗
(self, services)

Source from the content-addressed store, hash-verified

225 return link.id
226
227 async def close(self, services):
228 await self._cleanup_operation(services)
229 await self._save_new_source(services)
230 await services.get('event_svc').fire_event(
231 exchange=Operation.EVENT_EXCHANGE,
232 queue=Operation.EVENT_QUEUE_COMPLETED,
233 op=self.id
234 )
235
236 if self.state not in [self.states['FINISHED'], self.states['OUT_OF_TIME']]:
237 self.state = self.states['FINISHED']
238 self.finish = self.get_current_timestamp()
239
240 async def wait_for_completion(self):
241 for member in self.agents:

Callers 7

defaultDisplayFunction · 0.80
stopMethod · 0.80
stopMethod · 0.80
load_usage_markdownMethod · 0.80
test_tunnelMethod · 0.80

Calls 4

_cleanup_operationMethod · 0.95
_save_new_sourceMethod · 0.95
get_current_timestampMethod · 0.80
fire_eventMethod · 0.45

Tested by 2

test_tunnelMethod · 0.64