diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2018-06-04 23:57:23 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2018-06-04 23:57:23 +0200 |
| commit | a960d57ad80a65d5cf028f2595b38ca07bb46b83 (patch) | |
| tree | 58bc92a8c30511a1e4caa79f7ce5a3528d7ac35b /app/client/system | |
| parent | 1ccc4c798d95133cde1d4558318f0640a772526a (diff) | |
updating task status on serverrrrrr
Diffstat (limited to 'app/client/system')
| -rw-r--r-- | app/client/system/system.actions.js | 2 | ||||
| -rw-r--r-- | app/client/system/system.component.js | 6 |
2 files changed, 6 insertions, 2 deletions
diff --git a/app/client/system/system.actions.js b/app/client/system/system.actions.js index c661769..7039ff2 100644 --- a/app/client/system/system.actions.js +++ b/app/client/system/system.actions.js @@ -32,7 +32,7 @@ export const changeTool = (tool) => { export const enqueue_test_task = (dataset) => dispatch => { const task = { module: 'test', - activity: 'test', + activity: 'cpu', dataset: dataset, } return actions.queue.add_task(task) diff --git a/app/client/system/system.component.js b/app/client/system/system.component.js index b4a0ed7..bf77237 100644 --- a/app/client/system/system.component.js +++ b/app/client/system/system.component.js @@ -94,7 +94,11 @@ class System extends Component { <button onClick={() => actions.live.set_param('fruit', choice(fruits))}>Set</button> </Param> <Param title='Queue'> - <button onClick={() => actions.system.enqueue_test_task(choice(fruits))}>+ Add</button> + <button onClick={() => actions.queue.start_queue()}>Start</button> + <button onClick={() => actions.queue.stop_queue()}>Stop</button> + </Param> + <Param title=''> + <button onClick={() => actions.system.enqueue_test_task(choice(fruits))}>+Add</button> </Param> </Group> </div> |
