chore: 修复清除定时任务未生效的bug

This commit is contained in:
xiaojunnuo
2025-12-16 00:34:32 +08:00
parent 63d8bcf882
commit ab8fbaf21d
2 changed files with 4 additions and 2 deletions
@@ -441,6 +441,7 @@ export class PipelineService extends BaseService<PipelineEntity> {
pipeline = await this.info(id);
} else {
pipeline = id;
id = pipeline.id;
}
if (!pipeline) {
return;
@@ -456,6 +457,7 @@ export class PipelineService extends BaseService<PipelineEntity> {
removeCron(pipelineId, trigger) {
const name = this.buildCronKey(pipelineId, trigger.id);
this.cron.remove(name);
logger.info("当前定时器数量:", this.cron.getTaskSize());
}
registerCron(pipelineId, trigger) {