summaryrefslogtreecommitdiff
path: root/app/client/system/system.actions.js
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2018-06-04 22:56:28 +0200
committerJules Laplace <julescarbon@gmail.com>2018-06-04 22:56:28 +0200
commit1ccc4c798d95133cde1d4558318f0640a772526a (patch)
treead71fbe1e341abafcd73b2c6e84a76c532fd9bf5 /app/client/system/system.actions.js
parenta0b596b2d675144cbb00e55e67a79743166e25a5 (diff)
pushing test tasks into queue
Diffstat (limited to 'app/client/system/system.actions.js')
-rw-r--r--app/client/system/system.actions.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/app/client/system/system.actions.js b/app/client/system/system.actions.js
index 9e4f178..c661769 100644
--- a/app/client/system/system.actions.js
+++ b/app/client/system/system.actions.js
@@ -1,6 +1,8 @@
import socket from '../socket'
import types from '../types'
+import actions from '../actions'
+
export const run = (cmd) => (dispatch) => {
dispatch({ type: types.system.running_command, cmd })
socket.actions.run_system_command(cmd)
@@ -26,3 +28,12 @@ export const listDirectory = (opt) => (dispatch) => {
export const changeTool = (tool) => {
return { type: types.app.change_tool, tool }
}
+
+export const enqueue_test_task = (dataset) => dispatch => {
+ const task = {
+ module: 'test',
+ activity: 'test',
+ dataset: dataset,
+ }
+ return actions.queue.add_task(task)
+}