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 {
|
||||
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]
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user