fix(scheduler): fix TriggerSchedulerMonitor

Adds new `trigger_id` to the executions table with index
Adds new method findAllByTrigger on ExecutionRepository
This commit is contained in:
Florian Hussonnois
2025-12-11 18:36:31 +01:00
committed by Loïc Mathieu
parent 6f9ae15661
commit b5cda54342
9 changed files with 71 additions and 38 deletions

View File

@@ -0,0 +1,2 @@
ALTER TABLE executions ADD "trigger_id" VARCHAR(150) GENERATED ALWAYS AS (value -> 'trigger' ->> 'id') STORED;
CREATE INDEX idx_executions_trigger_id ON executions (trigger_id);