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++;