diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2018-06-07 23:45:31 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2018-06-07 23:45:31 +0200 |
| commit | 8850e41b3c51a5d90ca6c1667d6c1b1cebae6ad0 (patch) | |
| tree | 0d92519c3980f83fcb29bffaae674722e9338041 /app/client/system | |
| parent | 927d75b8d4579f86adb0c3d8f3eb8847924b0c09 (diff) | |
"after" tasks working
Diffstat (limited to 'app/client/system')
| -rw-r--r-- | app/client/system/system.component.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/app/client/system/system.component.js b/app/client/system/system.component.js index 216c7cc..aaa10d6 100644 --- a/app/client/system/system.component.js +++ b/app/client/system/system.component.js @@ -30,6 +30,13 @@ const live_test_task = { epochs: 1, opt: {} } +const wait_test_task = { + activity: 'wait', + module: 'test', + dataset: 'test', + epochs: 1, + opt: {} +} const fruits = ["apple","pear","orange","strawberry"] function choice(a){ return a[Math.floor(Math.random()*a.length)]} @@ -105,6 +112,9 @@ class System extends Component { <Param title=''> <button onClick={() => actions.system.enqueue_test_task(choice(fruits))}>+Add</button> </Param> + <Param title=''> + <button onClick={() => actions.queue.start_task(wait_test_task, { preempt: true, watch: true })}>Wait and Buzz</button> + </Param> </Group> </div> {this.renderCommandOutput()} |
