Merge pull request #203 from vatesfr/fix-scheduling

Scheduler: properly use Xo#runJobSequense() (fix vatesfr/xo-web#657).
This commit is contained in:
Julien Fontanet 2016-01-19 12:45:36 +01:00
commit 6e098f5a4f

View File

@ -127,9 +127,10 @@ export default class Scheduler {
try {
running[id] = true
await this.runJobSequence([ jobId ])
} catch (_) {
// FIXME What do we do ?
await this.xo.runJobSequence([ jobId ])
} catch (error) {
// FIXME: better error handling
console.error(error && error.stack || error)
} finally {
delete running[id]
}