({state, commit, dispatch})
| 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 |