(uuid: string)
| 113 | } |
| 114 | |
| 115 | async disableScript(uuid: string) { |
| 116 | // 关闭脚本 |
| 117 | // 停止定时任务 |
| 118 | // 检查是否有定时器 |
| 119 | if (this.cronJob.has(uuid)) { |
| 120 | this.stopCronJob(uuid); |
| 121 | } |
| 122 | // 移除重试队列 |
| 123 | this.removeRetryList(uuid); |
| 124 | if (!this.execScriptMap.has(uuid)) { |
| 125 | // 没有在运行 |
| 126 | return false; |
| 127 | } |
| 128 | // 停止脚本运行 |
| 129 | return await this.stopScript(uuid); |
| 130 | } |
| 131 | |
| 132 | // 执行脚本 |
| 133 | async execScript( |
no test coverage detected