fix task exception and send mail in dev with no smtp settings
This commit is contained in:
@@ -33,7 +33,6 @@ class Task {
|
||||
}
|
||||
} catch (e) {
|
||||
log.error(`TASK ERROR [${this.name}]: ${e} ${e.stack}`)
|
||||
return Promise.resolve(false)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -84,7 +83,7 @@ class TaskManager {
|
||||
// remove removable tasks
|
||||
this.tasks = this.tasks.filter(t => t.repeat)
|
||||
|
||||
return Promise.all(tasks)
|
||||
return Promise.allSettled(tasks)
|
||||
}
|
||||
|
||||
async tick () {
|
||||
|
||||
Reference in New Issue
Block a user