diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2018-05-26 23:15:09 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2018-05-26 23:15:09 +0200 |
| commit | 9be9249f7168e1799b1c6689da44d1efb15667ae (patch) | |
| tree | cc428236256f35f559b767b5eeca9953fd483d2f /app/client/system | |
| parent | be3b2bd56550b71a2ffb7eb1604c1b8c1d2dd4a2 (diff) | |
modularize... circular dependencies... whatever
Diffstat (limited to 'app/client/system')
| -rw-r--r-- | app/client/system/system.component.js | 24 |
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()} |
