summaryrefslogtreecommitdiff
path: root/app/client/system/system.component.js
diff options
context:
space:
mode:
Diffstat (limited to 'app/client/system/system.component.js')
-rw-r--r--app/client/system/system.component.js14
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>