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.js24
1 files changed, 19 insertions, 5 deletions
diff --git a/app/client/system/system.component.js b/app/client/system/system.component.js
index 00c5395..5d75964 100644
--- a/app/client/system/system.component.js
+++ b/app/client/system/system.component.js
@@ -9,15 +9,25 @@ import * as systemActions from './system.actions'
import * as taskActions from '../task/task.actions'
const cpu_test_task = {
- id: 1073,
- activity: 'train',
+ activity: 'cpu',
library: 'test',
dataset: 'test',
epochs: 1,
opt: {}
}
const gpu_test_task = {
-
+ activity: 'gpu',
+ library: 'test',
+ dataset: 'test',
+ epochs: 1,
+ opt: {}
+}
+const live_test_task = {
+ activity: 'live',
+ library: 'test',
+ dataset: 'test',
+ epochs: 1,
+ opt: {}
}
class System extends Component {
@@ -61,13 +71,17 @@ class System extends Component {
</Group>
<Group title="Test">
<Param title='CPU Test Task'>
- <button onClick={() => actions.task.start_task(cpu_test_task)}>Start</button>
+ <button onClick={() => actions.task.start_task(cpu_test_task, { preempt: true, watch: true })}>Start</button>
<button onClick={() => actions.task.stop_task(cpu_test_task)}>Stop</button>
</Param>
<Param title='GPU Test Task'>
- <button onClick={() => actions.task.start_task(gpu_test_task)}>Start</button>
+ <button onClick={() => actions.task.start_task(gpu_test_task, { preempt: true, watch: true })}>Start</button>
<button onClick={() => actions.task.stop_task(gpu_test_task)}>Stop</button>
</Param>
+ <Param title='Live Test Task'>
+ <button onClick={() => actions.task.start_task(live_test_task, { preempt: true, watch: true })}>Start</button>
+ <button onClick={() => actions.task.stop_task(live_test_task)}>Stop</button>
+ </Param>
</Group>
</div>
{this.renderCommandOutput()}