mirror of
https://github.com/whyour/qinglong.git
synced 2026-06-28 02:45:08 +08:00
nodeSchedule.scheduleJob() 对无效 cron 表达式(如 "0 * /6 * * *", 空格分开了 * /6)会返回 null,原代码原样存入 scheduleStacks 数组。 delCron 取消时对 null 调 cancel() 抛出 UNKNOWN 错误,导致 gRPC handler 中断、HTTP 端 cronService.remove() 跳过 setCrontab(), crontab.list 残留已删任务的记录,导致订阅更新时 gen_list_repo() 误判脚本已存在、不再重新注册。 过滤 null 并对每个 cancel 调用加 try/catch 容错。 |
||
|---|---|---|
| .. | ||
| api | ||
| config | ||
| data | ||
| interface | ||
| loaders | ||
| middlewares | ||
| protos | ||
| schedule | ||
| services | ||
| shared | ||
| types | ||
| validation | ||
| app.ts | ||
| token.ts | ||
| tsconfig.json | ||