From 0e4121ed335c1c903d1357a3b1dacdb4ae04c01e Mon Sep 17 00:00:00 2001 From: elrrrrrrr Date: Thu, 11 Jul 2024 16:30:25 +0800 Subject: [PATCH] fix: ignore hook when disable --- app/port/schedule/TriggerHookWorker.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/app/port/schedule/TriggerHookWorker.ts b/app/port/schedule/TriggerHookWorker.ts index 2e594c4f..8b4f2623 100644 --- a/app/port/schedule/TriggerHookWorker.ts +++ b/app/port/schedule/TriggerHookWorker.ts @@ -27,6 +27,7 @@ export class TriggerHookWorker { private readonly taskService: TaskService; async subscribe() { + if (!this.config.cnpmcore.hookEnable) return; if (executingCount >= this.config.cnpmcore.triggerHookWorkerMaxConcurrentTasks) return; executingCount++;