diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2018-06-05 03:43:09 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2018-06-05 03:43:09 +0200 |
| commit | 4298d8d81c9bea0fb4c0f115dfa2b04ea72f0006 (patch) | |
| tree | 27ca33f462123757e541b4eef080d834e18ceb1d /app/client/system/system.component.js | |
| parent | 51d9212d97e3b326a8e9e6499bc83d27df2ef64c (diff) | |
kill cleanly
Diffstat (limited to 'app/client/system/system.component.js')
| -rw-r--r-- | app/client/system/system.component.js | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/app/client/system/system.component.js b/app/client/system/system.component.js index bf77237..10ec971 100644 --- a/app/client/system/system.component.js +++ b/app/client/system/system.component.js @@ -76,6 +76,16 @@ class System extends Component { <button onClick={() => actions.system.run('df')}>df</button> </Param> </Group> + <Group title="Tasks"> + <Param title='Kill task'> + <button onClick={() => actions.queue.stop_task('cpu')}>CPU</button> + <button onClick={() => actions.queue.stop_task('gpu')}>GPU</button> + </Param> + <Param title='Queue'> + <button onClick={() => actions.queue.start_queue()}>Start</button> + <button onClick={() => actions.queue.stop_queue()}>Stop</button> + </Param> + </Group> <Group title="Test"> <Param title='CPU Test Task'> <button onClick={() => actions.queue.start_task(cpu_test_task, { preempt: true, watch: true })}>Start</button> @@ -93,10 +103,6 @@ class System extends Component { <button onClick={() => actions.live.get_params()}>Get</button> <button onClick={() => actions.live.set_param('fruit', choice(fruits))}>Set</button> </Param> - <Param title='Queue'> - <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> |
