diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2018-06-04 22:37:48 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2018-06-04 22:39:14 +0200 |
| commit | 25a1e4708c976d848f065e097e90e13bc063e7ea (patch) | |
| tree | 157b2b0b715e6a014147c762b24b149527ef99d4 /public/bundle.js | |
| parent | 76c64dd94d25cd896c75bbe9d000aed7dfc33653 (diff) | |
monitoring of processes with epoch/progress events
Diffstat (limited to 'public/bundle.js')
| -rw-r--r-- | public/bundle.js | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/public/bundle.js b/public/bundle.js index 781a233..a34ede8 100644 --- a/public/bundle.js +++ b/public/bundle.js @@ -7214,11 +7214,13 @@ _socket.socket.on('task_res', function (data) { break; case 'progress': (0, _store.dispatch)({ type: _types2.default.task.progress, task: data.task }); + (0, _store.dispatch)({ type: _types2.default.task.update, task: data.task }); break; case 'epoch': - (0, _store.dispatch)({ type: _types2.default.task.progress, task: data.task }); + (0, _store.dispatch)({ type: _types2.default.task.epoch, task: data.task }); + (0, _store.dispatch)({ type: _types2.default.task.update, task: data.task }); break; - case 'error': + case 'task_error': return console.log('task error', data); default: return console.log('no such task command', data.type); @@ -7469,7 +7471,7 @@ var live_test_task = { epochs: 1, opt: {} }; -var fruits = ["apple", "pear", "banana", "strawberry"]; +var fruits = ["apple", "pear", "orange", "strawberry"]; function choice(a) { return a[Math.floor(Math.random() * a.length)]; } @@ -8022,7 +8024,7 @@ exports.default = (_system$app$folder$fi = { folder: (0, _crud.crud_type)('folder', []), file: (0, _crud.crud_type)('file', []), dataset: (0, _crud.crud_type)('dataset', []), - task: (0, _crud.crud_type)('task', ['starting_task', 'task_begin', 'stopping_task', 'task_finish']), + task: (0, _crud.crud_type)('task', ['starting_task', 'task_begin', 'stopping_task', 'task_finish', 'progress', 'epoch']), socket: { connect: 'SOCKET_CONNECT', connect_error: 'SOCKET_CONNECT_ERROR', |
