diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2018-06-04 23:57:23 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2018-06-04 23:57:23 +0200 |
| commit | a960d57ad80a65d5cf028f2595b38ca07bb46b83 (patch) | |
| tree | 58bc92a8c30511a1e4caa79f7ce5a3528d7ac35b /app/relay/modules/test.js | |
| parent | 1ccc4c798d95133cde1d4558318f0640a772526a (diff) | |
updating task status on serverrrrrr
Diffstat (limited to 'app/relay/modules/test.js')
| -rw-r--r-- | app/relay/modules/test.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/app/relay/modules/test.js b/app/relay/modules/test.js index 57a324a..8876f7c 100644 --- a/app/relay/modules/test.js +++ b/app/relay/modules/test.js @@ -7,6 +7,12 @@ const cpu = { type: 'perl', script: 'test.pl', params: '--train', + listen: (task, line, i) => { + if ( (parseInt(line) % 10) === 0) { + return { type: 'epoch', task, epoch: (i/10)|0 } + } + return null + } } const gpu = { type: 'python', |
