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

Function stopExecution

web-src/src/main-app/store/scriptExecutor.js:51–61  ·  view source on GitHub ↗
({state, commit, dispatch})

Source from the content-addressed store, hash-verified

49 },
50
51 stopExecution({state, commit, dispatch}) {
52 if (isNull(state.killIntervalId) && (!state.killEnabled)) {
53 const intervalId = setInterval(() => {
54 dispatch('_tickKillInterval')
55 }, oneSecDelay);
56
57 commit('SET_KILL_INTERVAL', {id: intervalId, timeoutSec: 5, killEnabled: false});
58 }
59
60 return axiosInstance.post('executions/stop/' + state.id);
61 },
62
63 _tickKillInterval({state, commit}) {
64

Callers

nothing calls this directly

Calls 2

isNullFunction · 0.90
postMethod · 0.45

Tested by

no test coverage detected