MCPcopy Index your code
hub / github.com/bugy/script-server / is_running

Method is_running

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

Source from the content-addressed store, hash-verified

88 return self._get_for_executor(execution_id, lambda e: e.get_return_code())
89
90 def is_running(self, execution_id, user):
91 executor = self._executors.get(execution_id) # type: ScriptExecutor
92 if executor is None:
93 return False
94
95 self.validate_execution_id(execution_id, user, only_active=False, allow_when_history_access=True)
96
97 return not executor.is_finished()
98
99 def get_active_executions(self, user_id):
100 result = []

Callers 7

kill_ioloopMethod · 0.80
getMethod · 0.80
getMethod · 0.80
getMethod · 0.80

Calls 3

validate_execution_idMethod · 0.95
getMethod · 0.45
is_finishedMethod · 0.45

Tested by 4

kill_ioloopMethod · 0.64