Merge pull request #203 from vatesfr/fix-scheduling
Scheduler: properly use Xo#runJobSequense() (fix vatesfr/xo-web#657).
This commit is contained in:
commit
6e098f5a4f
@ -127,9 +127,10 @@ export default class Scheduler {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
running[id] = true
|
running[id] = true
|
||||||
await this.runJobSequence([ jobId ])
|
await this.xo.runJobSequence([ jobId ])
|
||||||
} catch (_) {
|
} catch (error) {
|
||||||
// FIXME What do we do ?
|
// FIXME: better error handling
|
||||||
|
console.error(error && error.stack || error)
|
||||||
} finally {
|
} finally {
|
||||||
delete running[id]
|
delete running[id]
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user