Trigger workflow on database event (#6480)

- Add global listener on database event
- Fetch event listener associated
- Trigger associated workflow

Also updated the runner so it expects the input to be in the payload
rather than the trigger
This commit is contained in:
Thomas Trompette
2024-08-01 11:57:44 +02:00
committed by GitHub
parent ae423f5e75
commit 8c8f192765
15 changed files with 271 additions and 39 deletions

View File

@ -1,8 +1,9 @@
import { Module } from '@nestjs/common';
import { WorkflowRunnerModule } from 'src/modules/workflow/workflow-runner/workflow-runner.module';
import { WorkflowTriggerModule } from 'src/modules/workflow/workflow-trigger/workflow-trigger.module';
@Module({
imports: [WorkflowRunnerModule],
imports: [WorkflowRunnerModule, WorkflowTriggerModule],
})
export class WorkflowModule {}