refactor: 优化

This commit is contained in:
xiaojunnuo
2020-12-22 22:47:07 +08:00
parent af0875ac4c
commit 49b96592a0
17 changed files with 45 additions and 2125 deletions
+9
View File
@@ -33,6 +33,15 @@ export class Executor {
}
async run (options, args) {
try {
return this.doRun(options, args)
} catch (e) {
logger.error('任务执行出错:', e)
throw e
}
}
async doRun (options, args) {
if (args != null) {
_.merge(options.args, args)
}