@shipfox/api-workflows 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +2 -0
- package/.turbo/turbo-type$colon$emit.log +1 -0
- package/.turbo/turbo-type.log +1 -0
- package/CHANGELOG.md +311 -0
- package/LICENSE +21 -0
- package/dist/core/agent-tool-capability-warning.d.ts +7 -0
- package/dist/core/agent-tool-capability-warning.d.ts.map +1 -0
- package/dist/core/agent-tool-capability-warning.js +149 -0
- package/dist/core/agent-tool-capability-warning.js.map +1 -0
- package/dist/core/agent-tools.d.ts +51 -0
- package/dist/core/agent-tools.d.ts.map +1 -0
- package/dist/core/agent-tools.js +296 -0
- package/dist/core/agent-tools.js.map +1 -0
- package/dist/core/checkout.d.ts +29 -0
- package/dist/core/checkout.d.ts.map +1 -0
- package/dist/core/checkout.js +42 -0
- package/dist/core/checkout.js.map +1 -0
- package/dist/core/condition-trace.d.ts +13 -0
- package/dist/core/condition-trace.d.ts.map +1 -0
- package/dist/core/condition-trace.js +51 -0
- package/dist/core/condition-trace.js.map +1 -0
- package/dist/core/entities/index.d.ts +5 -0
- package/dist/core/entities/index.d.ts.map +1 -0
- package/dist/core/entities/index.js +3 -0
- package/dist/core/entities/index.js.map +1 -0
- package/dist/core/entities/job-execution.d.ts +30 -0
- package/dist/core/entities/job-execution.d.ts.map +1 -0
- package/dist/core/entities/job-execution.js +3 -0
- package/dist/core/entities/job-execution.js.map +1 -0
- package/dist/core/entities/job-listener-event.d.ts +15 -0
- package/dist/core/entities/job-listener-event.d.ts.map +1 -0
- package/dist/core/entities/job-listener-event.js +3 -0
- package/dist/core/entities/job-listener-event.js.map +1 -0
- package/dist/core/entities/job.d.ts +54 -0
- package/dist/core/entities/job.d.ts.map +1 -0
- package/dist/core/entities/job.js +29 -0
- package/dist/core/entities/job.js.map +1 -0
- package/dist/core/entities/step.d.ts +86 -0
- package/dist/core/entities/step.d.ts.map +1 -0
- package/dist/core/entities/step.js +12 -0
- package/dist/core/entities/step.js.map +1 -0
- package/dist/core/entities/workflow-run-attempt.d.ts +20 -0
- package/dist/core/entities/workflow-run-attempt.d.ts.map +1 -0
- package/dist/core/entities/workflow-run-attempt.js +3 -0
- package/dist/core/entities/workflow-run-attempt.js.map +1 -0
- package/dist/core/entities/workflow-run.d.ts +66 -0
- package/dist/core/entities/workflow-run.d.ts.map +1 -0
- package/dist/core/entities/workflow-run.js +10 -0
- package/dist/core/entities/workflow-run.js.map +1 -0
- package/dist/core/errors.d.ts +85 -0
- package/dist/core/errors.d.ts.map +1 -0
- package/dist/core/errors.js +134 -0
- package/dist/core/errors.js.map +1 -0
- package/dist/core/index.d.ts +14 -0
- package/dist/core/index.d.ts.map +1 -0
- package/dist/core/index.js +9 -0
- package/dist/core/index.js.map +1 -0
- package/dist/core/job-execution-outcome.d.ts +29 -0
- package/dist/core/job-execution-outcome.d.ts.map +1 -0
- package/dist/core/job-execution-outcome.js +31 -0
- package/dist/core/job-execution-outcome.js.map +1 -0
- package/dist/core/job-execution.d.ts +37 -0
- package/dist/core/job-execution.d.ts.map +1 -0
- package/dist/core/job-execution.js +425 -0
- package/dist/core/job-execution.js.map +1 -0
- package/dist/core/job-transition/decide-job-activation.d.ts +29 -0
- package/dist/core/job-transition/decide-job-activation.d.ts.map +1 -0
- package/dist/core/job-transition/decide-job-activation.js +51 -0
- package/dist/core/job-transition/decide-job-activation.js.map +1 -0
- package/dist/core/job-transition/derive-job-execution-outputs.d.ts +18 -0
- package/dist/core/job-transition/derive-job-execution-outputs.d.ts.map +1 -0
- package/dist/core/job-transition/derive-job-execution-outputs.js +23 -0
- package/dist/core/job-transition/derive-job-execution-outputs.js.map +1 -0
- package/dist/core/job-transition/derive-job-success.d.ts +16 -0
- package/dist/core/job-transition/derive-job-success.d.ts.map +1 -0
- package/dist/core/job-transition/derive-job-success.js +47 -0
- package/dist/core/job-transition/derive-job-success.js.map +1 -0
- package/dist/core/job-transition/index.d.ts +5 -0
- package/dist/core/job-transition/index.d.ts.map +1 -0
- package/dist/core/job-transition/index.js +6 -0
- package/dist/core/job-transition/index.js.map +1 -0
- package/dist/core/job-transition/runtime-completion-status-for-job.d.ts +4 -0
- package/dist/core/job-transition/runtime-completion-status-for-job.d.ts.map +1 -0
- package/dist/core/job-transition/runtime-completion-status-for-job.js +8 -0
- package/dist/core/job-transition/runtime-completion-status-for-job.js.map +1 -0
- package/dist/core/listener-execution-materialization.d.ts +30 -0
- package/dist/core/listener-execution-materialization.d.ts.map +1 -0
- package/dist/core/listener-execution-materialization.js +87 -0
- package/dist/core/listener-execution-materialization.js.map +1 -0
- package/dist/core/run-workflow.d.ts +11 -0
- package/dist/core/run-workflow.d.ts.map +1 -0
- package/dist/core/run-workflow.js +28 -0
- package/dist/core/run-workflow.js.map +1 -0
- package/dist/core/source-control.d.ts +5 -0
- package/dist/core/source-control.d.ts.map +1 -0
- package/dist/core/source-control.js +19 -0
- package/dist/core/source-control.js.map +1 -0
- package/dist/core/step-config/agent.d.ts +49 -0
- package/dist/core/step-config/agent.d.ts.map +1 -0
- package/dist/core/step-config/agent.js +337 -0
- package/dist/core/step-config/agent.js.map +1 -0
- package/dist/core/step-config/assemble-run-context.d.ts +94 -0
- package/dist/core/step-config/assemble-run-context.d.ts.map +1 -0
- package/dist/core/step-config/assemble-run-context.js +393 -0
- package/dist/core/step-config/assemble-run-context.js.map +1 -0
- package/dist/core/step-config/complete-step-dispatch-config.d.ts +13 -0
- package/dist/core/step-config/complete-step-dispatch-config.d.ts.map +1 -0
- package/dist/core/step-config/complete-step-dispatch-config.js +38 -0
- package/dist/core/step-config/complete-step-dispatch-config.js.map +1 -0
- package/dist/core/step-config/fields.d.ts +38 -0
- package/dist/core/step-config/fields.d.ts.map +1 -0
- package/dist/core/step-config/fields.js +72 -0
- package/dist/core/step-config/fields.js.map +1 -0
- package/dist/core/step-config/index.d.ts +8 -0
- package/dist/core/step-config/index.d.ts.map +1 -0
- package/dist/core/step-config/index.js +7 -0
- package/dist/core/step-config/index.js.map +1 -0
- package/dist/core/step-config/materialize-job-execution-steps.d.ts +35 -0
- package/dist/core/step-config/materialize-job-execution-steps.d.ts.map +1 -0
- package/dist/core/step-config/materialize-job-execution-steps.js +92 -0
- package/dist/core/step-config/materialize-job-execution-steps.js.map +1 -0
- package/dist/core/step-config/materialize-workflow-model.d.ts +42 -0
- package/dist/core/step-config/materialize-workflow-model.d.ts.map +1 -0
- package/dist/core/step-config/materialize-workflow-model.js +96 -0
- package/dist/core/step-config/materialize-workflow-model.js.map +1 -0
- package/dist/core/step-config/resolve-job-execution-name.d.ts +18 -0
- package/dist/core/step-config/resolve-job-execution-name.d.ts.map +1 -0
- package/dist/core/step-config/resolve-job-execution-name.js +36 -0
- package/dist/core/step-config/resolve-job-execution-name.js.map +1 -0
- package/dist/core/step-config/resolve-step-config.d.ts +33 -0
- package/dist/core/step-config/resolve-step-config.d.ts.map +1 -0
- package/dist/core/step-config/resolve-step-config.js +164 -0
- package/dist/core/step-config/resolve-step-config.js.map +1 -0
- package/dist/core/step-config/run.d.ts +39 -0
- package/dist/core/step-config/run.d.ts.map +1 -0
- package/dist/core/step-config/run.js +360 -0
- package/dist/core/step-config/run.js.map +1 -0
- package/dist/core/step-config/workflow-evaluation-context.d.ts +6 -0
- package/dist/core/step-config/workflow-evaluation-context.d.ts.map +1 -0
- package/dist/core/step-config/workflow-evaluation-context.js +3 -0
- package/dist/core/step-config/workflow-evaluation-context.js.map +1 -0
- package/dist/core/step-transition/apply-step-transition.d.ts +26 -0
- package/dist/core/step-transition/apply-step-transition.d.ts.map +1 -0
- package/dist/core/step-transition/apply-step-transition.js +141 -0
- package/dist/core/step-transition/apply-step-transition.js.map +1 -0
- package/dist/core/step-transition/decide-step-transition.d.ts +71 -0
- package/dist/core/step-transition/decide-step-transition.d.ts.map +1 -0
- package/dist/core/step-transition/decide-step-transition.js +110 -0
- package/dist/core/step-transition/decide-step-transition.js.map +1 -0
- package/dist/core/step-transition/evaluate-gate.d.ts +28 -0
- package/dist/core/step-transition/evaluate-gate.d.ts.map +1 -0
- package/dist/core/step-transition/evaluate-gate.js +159 -0
- package/dist/core/step-transition/evaluate-gate.js.map +1 -0
- package/dist/core/step-transition/read-step-outputs.d.ts +3 -0
- package/dist/core/step-transition/read-step-outputs.d.ts.map +1 -0
- package/dist/core/step-transition/read-step-outputs.js +24 -0
- package/dist/core/step-transition/read-step-outputs.js.map +1 -0
- package/dist/core/workflow-run-creation.d.ts +43 -0
- package/dist/core/workflow-run-creation.d.ts.map +1 -0
- package/dist/core/workflow-run-creation.js +80 -0
- package/dist/core/workflow-run-creation.js.map +1 -0
- package/dist/core/workflow-scheduling/index.d.ts +5 -0
- package/dist/core/workflow-scheduling/index.d.ts.map +1 -0
- package/dist/core/workflow-scheduling/index.js +4 -0
- package/dist/core/workflow-scheduling/index.js.map +1 -0
- package/dist/core/workflow-scheduling/run-progress.d.ts +20 -0
- package/dist/core/workflow-scheduling/run-progress.d.ts.map +1 -0
- package/dist/core/workflow-scheduling/run-progress.js +40 -0
- package/dist/core/workflow-scheduling/run-progress.js.map +1 -0
- package/dist/core/workflow-scheduling/runtime-dag.d.ts +10 -0
- package/dist/core/workflow-scheduling/runtime-dag.d.ts.map +1 -0
- package/dist/core/workflow-scheduling/runtime-dag.js +3 -0
- package/dist/core/workflow-scheduling/runtime-dag.js.map +1 -0
- package/dist/core/workflow-scheduling/runtime-scheduling-command.d.ts +16 -0
- package/dist/core/workflow-scheduling/runtime-scheduling-command.d.ts.map +1 -0
- package/dist/core/workflow-scheduling/runtime-scheduling-command.js +3 -0
- package/dist/core/workflow-scheduling/runtime-scheduling-command.js.map +1 -0
- package/dist/core/workflow-scheduling/schedule-runtime-dag.d.ts +9 -0
- package/dist/core/workflow-scheduling/schedule-runtime-dag.d.ts.map +1 -0
- package/dist/core/workflow-scheduling/schedule-runtime-dag.js +72 -0
- package/dist/core/workflow-scheduling/schedule-runtime-dag.js.map +1 -0
- package/dist/db/db.d.ts +4959 -0
- package/dist/db/db.d.ts.map +1 -0
- package/dist/db/db.js +37 -0
- package/dist/db/db.js.map +1 -0
- package/dist/db/index.d.ts +9 -0
- package/dist/db/index.d.ts.map +1 -0
- package/dist/db/index.js +10 -0
- package/dist/db/index.js.map +1 -0
- package/dist/db/job-listener-events.d.ts +18 -0
- package/dist/db/job-listener-events.d.ts.map +1 -0
- package/dist/db/job-listener-events.js +59 -0
- package/dist/db/job-listener-events.js.map +1 -0
- package/dist/db/job-listeners.d.ts +55 -0
- package/dist/db/job-listeners.d.ts.map +1 -0
- package/dist/db/job-listeners.js +358 -0
- package/dist/db/job-listeners.js.map +1 -0
- package/dist/db/outbox-writes.d.ts +12 -0
- package/dist/db/outbox-writes.d.ts.map +1 -0
- package/dist/db/outbox-writes.js +20 -0
- package/dist/db/outbox-writes.js.map +1 -0
- package/dist/db/runner-lease-table.d.ts +469 -0
- package/dist/db/runner-lease-table.d.ts.map +1 -0
- package/dist/db/runner-lease-table.js +42 -0
- package/dist/db/runner-lease-table.js.map +1 -0
- package/dist/db/schema/common.d.ts +2 -0
- package/dist/db/schema/common.d.ts.map +1 -0
- package/dist/db/schema/common.js +4 -0
- package/dist/db/schema/common.js.map +1 -0
- package/dist/db/schema/job-executions.d.ts +311 -0
- package/dist/db/schema/job-executions.d.ts.map +1 -0
- package/dist/db/schema/job-executions.js +76 -0
- package/dist/db/schema/job-executions.js.map +1 -0
- package/dist/db/schema/job-listener-events.d.ts +200 -0
- package/dist/db/schema/job-listener-events.d.ts.map +1 -0
- package/dist/db/schema/job-listener-events.js +50 -0
- package/dist/db/schema/job-listener-events.js.map +1 -0
- package/dist/db/schema/jobs.d.ts +542 -0
- package/dist/db/schema/jobs.d.ts.map +1 -0
- package/dist/db/schema/jobs.js +121 -0
- package/dist/db/schema/jobs.js.map +1 -0
- package/dist/db/schema/outbox.d.ts +195 -0
- package/dist/db/schema/outbox.d.ts.map +1 -0
- package/dist/db/schema/outbox.js +5 -0
- package/dist/db/schema/outbox.js.map +1 -0
- package/dist/db/schema/step-attempts.d.ts +330 -0
- package/dist/db/schema/step-attempts.d.ts.map +1 -0
- package/dist/db/schema/step-attempts.js +80 -0
- package/dist/db/schema/step-attempts.js.map +1 -0
- package/dist/db/schema/steps.d.ts +352 -0
- package/dist/db/schema/steps.d.ts.map +1 -0
- package/dist/db/schema/steps.js +80 -0
- package/dist/db/schema/steps.js.map +1 -0
- package/dist/db/schema/workflow-run-attempts.d.ts +239 -0
- package/dist/db/schema/workflow-run-attempts.d.ts.map +1 -0
- package/dist/db/schema/workflow-run-attempts.js +53 -0
- package/dist/db/schema/workflow-run-attempts.js.map +1 -0
- package/dist/db/schema/workflow-runs.d.ts +360 -0
- package/dist/db/schema/workflow-runs.d.ts.map +1 -0
- package/dist/db/schema/workflow-runs.js +85 -0
- package/dist/db/schema/workflow-runs.js.map +1 -0
- package/dist/db/workflow-runs/job-executions.d.ts +49 -0
- package/dist/db/workflow-runs/job-executions.d.ts.map +1 -0
- package/dist/db/workflow-runs/job-executions.js +271 -0
- package/dist/db/workflow-runs/job-executions.js.map +1 -0
- package/dist/db/workflow-runs/jobs.d.ts +60 -0
- package/dist/db/workflow-runs/jobs.d.ts.map +1 -0
- package/dist/db/workflow-runs/jobs.js +288 -0
- package/dist/db/workflow-runs/jobs.js.map +1 -0
- package/dist/db/workflow-runs/outbox.d.ts +20 -0
- package/dist/db/workflow-runs/outbox.d.ts.map +1 -0
- package/dist/db/workflow-runs/outbox.js +68 -0
- package/dist/db/workflow-runs/outbox.js.map +1 -0
- package/dist/db/workflow-runs/queries.d.ts +71 -0
- package/dist/db/workflow-runs/queries.d.ts.map +1 -0
- package/dist/db/workflow-runs/queries.js +253 -0
- package/dist/db/workflow-runs/queries.js.map +1 -0
- package/dist/db/workflow-runs/run-create.d.ts +32 -0
- package/dist/db/workflow-runs/run-create.d.ts.map +1 -0
- package/dist/db/workflow-runs/run-create.js +288 -0
- package/dist/db/workflow-runs/run-create.js.map +1 -0
- package/dist/db/workflow-runs/run-graph.d.ts +27 -0
- package/dist/db/workflow-runs/run-graph.d.ts.map +1 -0
- package/dist/db/workflow-runs/run-graph.js +63 -0
- package/dist/db/workflow-runs/run-graph.js.map +1 -0
- package/dist/db/workflow-runs/run-rerun.d.ts +8 -0
- package/dist/db/workflow-runs/run-rerun.d.ts.map +1 -0
- package/dist/db/workflow-runs/run-rerun.js +207 -0
- package/dist/db/workflow-runs/run-rerun.js.map +1 -0
- package/dist/db/workflow-runs/run-status.d.ts +24 -0
- package/dist/db/workflow-runs/run-status.d.ts.map +1 -0
- package/dist/db/workflow-runs/run-status.js +249 -0
- package/dist/db/workflow-runs/run-status.js.map +1 -0
- package/dist/db/workflow-runs/runs.d.ts +7 -0
- package/dist/db/workflow-runs/runs.d.ts.map +1 -0
- package/dist/db/workflow-runs/runs.js +5 -0
- package/dist/db/workflow-runs/runs.js.map +1 -0
- package/dist/db/workflow-runs/shared.d.ts +24 -0
- package/dist/db/workflow-runs/shared.d.ts.map +1 -0
- package/dist/db/workflow-runs/shared.js +50 -0
- package/dist/db/workflow-runs/shared.js.map +1 -0
- package/dist/db/workflow-runs/steps.d.ts +83 -0
- package/dist/db/workflow-runs/steps.d.ts.map +1 -0
- package/dist/db/workflow-runs/steps.js +246 -0
- package/dist/db/workflow-runs/steps.js.map +1 -0
- package/dist/db/workflow-runs.d.ts +12 -0
- package/dist/db/workflow-runs.d.ts.map +1 -0
- package/dist/db/workflow-runs.js +8 -0
- package/dist/db/workflow-runs.js.map +1 -0
- package/dist/index.d.ts +10 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +54 -0
- package/dist/index.js.map +1 -0
- package/dist/metrics/index.d.ts +2 -0
- package/dist/metrics/index.d.ts.map +1 -0
- package/dist/metrics/index.js +3 -0
- package/dist/metrics/index.js.map +1 -0
- package/dist/metrics/instance.d.ts +20 -0
- package/dist/metrics/instance.d.ts.map +1 -0
- package/dist/metrics/instance.js +127 -0
- package/dist/metrics/instance.js.map +1 -0
- package/dist/metrics/service.d.ts +2 -0
- package/dist/metrics/service.d.ts.map +1 -0
- package/dist/metrics/service.js +30 -0
- package/dist/metrics/service.js.map +1 -0
- package/dist/presentation/dto/checkout-token.d.ts +6 -0
- package/dist/presentation/dto/checkout-token.d.ts.map +1 -0
- package/dist/presentation/dto/checkout-token.js +74 -0
- package/dist/presentation/dto/checkout-token.js.map +1 -0
- package/dist/presentation/dto/index.d.ts +4 -0
- package/dist/presentation/dto/index.d.ts.map +1 -0
- package/dist/presentation/dto/index.js +5 -0
- package/dist/presentation/dto/index.js.map +1 -0
- package/dist/presentation/dto/job.d.ts +6 -0
- package/dist/presentation/dto/job.d.ts.map +1 -0
- package/dist/presentation/dto/job.js +59 -0
- package/dist/presentation/dto/job.js.map +1 -0
- package/dist/presentation/dto/step.d.ts +6 -0
- package/dist/presentation/dto/step.d.ts.map +1 -0
- package/dist/presentation/dto/step.js +162 -0
- package/dist/presentation/dto/step.js.map +1 -0
- package/dist/presentation/dto/workflow-run.d.ts +6 -0
- package/dist/presentation/dto/workflow-run.d.ts.map +1 -0
- package/dist/presentation/dto/workflow-run.js +35 -0
- package/dist/presentation/dto/workflow-run.js.map +1 -0
- package/dist/presentation/index.d.ts +3 -0
- package/dist/presentation/index.d.ts.map +1 -0
- package/dist/presentation/index.js +4 -0
- package/dist/presentation/index.js.map +1 -0
- package/dist/presentation/routes/agent-runtime-config.d.ts +2 -0
- package/dist/presentation/routes/agent-runtime-config.d.ts.map +1 -0
- package/dist/presentation/routes/agent-runtime-config.js +71 -0
- package/dist/presentation/routes/agent-runtime-config.js.map +1 -0
- package/dist/presentation/routes/cancel-run.d.ts +2 -0
- package/dist/presentation/routes/cancel-run.d.ts.map +1 -0
- package/dist/presentation/routes/cancel-run.js +46 -0
- package/dist/presentation/routes/cancel-run.js.map +1 -0
- package/dist/presentation/routes/checkout-token.d.ts +2 -0
- package/dist/presentation/routes/checkout-token.d.ts.map +1 -0
- package/dist/presentation/routes/checkout-token.js +64 -0
- package/dist/presentation/routes/checkout-token.js.map +1 -0
- package/dist/presentation/routes/get-run-aggregates.d.ts +2 -0
- package/dist/presentation/routes/get-run-aggregates.d.ts.map +1 -0
- package/dist/presentation/routes/get-run-aggregates.js +60 -0
- package/dist/presentation/routes/get-run-aggregates.js.map +1 -0
- package/dist/presentation/routes/get-run.d.ts +2 -0
- package/dist/presentation/routes/get-run.d.ts.map +1 -0
- package/dist/presentation/routes/get-run.js +60 -0
- package/dist/presentation/routes/get-run.js.map +1 -0
- package/dist/presentation/routes/get-step-secrets.d.ts +2 -0
- package/dist/presentation/routes/get-step-secrets.d.ts.map +1 -0
- package/dist/presentation/routes/get-step-secrets.js +115 -0
- package/dist/presentation/routes/get-step-secrets.js.map +1 -0
- package/dist/presentation/routes/index.d.ts +4 -0
- package/dist/presentation/routes/index.d.ts.map +1 -0
- package/dist/presentation/routes/index.js +41 -0
- package/dist/presentation/routes/index.js.map +1 -0
- package/dist/presentation/routes/leased-step.d.ts +14 -0
- package/dist/presentation/routes/leased-step.d.ts.map +1 -0
- package/dist/presentation/routes/leased-step.js +50 -0
- package/dist/presentation/routes/leased-step.js.map +1 -0
- package/dist/presentation/routes/list-run-attempts.d.ts +2 -0
- package/dist/presentation/routes/list-run-attempts.d.ts.map +1 -0
- package/dist/presentation/routes/list-run-attempts.js +35 -0
- package/dist/presentation/routes/list-run-attempts.js.map +1 -0
- package/dist/presentation/routes/list-runs.d.ts +2 -0
- package/dist/presentation/routes/list-runs.d.ts.map +1 -0
- package/dist/presentation/routes/list-runs.js +70 -0
- package/dist/presentation/routes/list-runs.js.map +1 -0
- package/dist/presentation/routes/next-step.d.ts +2 -0
- package/dist/presentation/routes/next-step.d.ts.map +1 -0
- package/dist/presentation/routes/next-step.js +65 -0
- package/dist/presentation/routes/next-step.js.map +1 -0
- package/dist/presentation/routes/report-step.d.ts +2 -0
- package/dist/presentation/routes/report-step.d.ts.map +1 -0
- package/dist/presentation/routes/report-step.js +73 -0
- package/dist/presentation/routes/report-step.js.map +1 -0
- package/dist/presentation/routes/require-accessible-run.d.ts +7 -0
- package/dist/presentation/routes/require-accessible-run.d.ts.map +1 -0
- package/dist/presentation/routes/require-accessible-run.js +25 -0
- package/dist/presentation/routes/require-accessible-run.js.map +1 -0
- package/dist/presentation/routes/rerun-run.d.ts +2 -0
- package/dist/presentation/routes/rerun-run.d.ts.map +1 -0
- package/dist/presentation/routes/rerun-run.js +56 -0
- package/dist/presentation/routes/rerun-run.js.map +1 -0
- package/dist/presentation/subscribers/index.d.ts +8 -0
- package/dist/presentation/subscribers/index.d.ts.map +1 -0
- package/dist/presentation/subscribers/index.js +9 -0
- package/dist/presentation/subscribers/index.js.map +1 -0
- package/dist/presentation/subscribers/on-job-event-delivered.d.ts +3 -0
- package/dist/presentation/subscribers/on-job-event-delivered.d.ts.map +1 -0
- package/dist/presentation/subscribers/on-job-event-delivered.js +24 -0
- package/dist/presentation/subscribers/on-job-event-delivered.js.map +1 -0
- package/dist/presentation/subscribers/on-job-steps-settled.d.ts +3 -0
- package/dist/presentation/subscribers/on-job-steps-settled.d.ts.map +1 -0
- package/dist/presentation/subscribers/on-job-steps-settled.js +36 -0
- package/dist/presentation/subscribers/on-job-steps-settled.js.map +1 -0
- package/dist/presentation/subscribers/on-runner-job-claimed.d.ts +3 -0
- package/dist/presentation/subscribers/on-runner-job-claimed.d.ts.map +1 -0
- package/dist/presentation/subscribers/on-runner-job-claimed.js +20 -0
- package/dist/presentation/subscribers/on-runner-job-claimed.js.map +1 -0
- package/dist/presentation/subscribers/on-runner-job-lease-expired.d.ts +3 -0
- package/dist/presentation/subscribers/on-runner-job-lease-expired.d.ts.map +1 -0
- package/dist/presentation/subscribers/on-runner-job-lease-expired.js +35 -0
- package/dist/presentation/subscribers/on-runner-job-lease-expired.js.map +1 -0
- package/dist/presentation/subscribers/on-runner-job-queued.d.ts +3 -0
- package/dist/presentation/subscribers/on-runner-job-queued.d.ts.map +1 -0
- package/dist/presentation/subscribers/on-runner-job-queued.js +20 -0
- package/dist/presentation/subscribers/on-runner-job-queued.js.map +1 -0
- package/dist/presentation/subscribers/on-workflow-run-attempt-created.d.ts +3 -0
- package/dist/presentation/subscribers/on-workflow-run-attempt-created.d.ts.map +1 -0
- package/dist/presentation/subscribers/on-workflow-run-attempt-created.js +35 -0
- package/dist/presentation/subscribers/on-workflow-run-attempt-created.js.map +1 -0
- package/dist/presentation/subscribers/on-workflow-run-cancelled.d.ts +3 -0
- package/dist/presentation/subscribers/on-workflow-run-cancelled.d.ts.map +1 -0
- package/dist/presentation/subscribers/on-workflow-run-cancelled.js +25 -0
- package/dist/presentation/subscribers/on-workflow-run-cancelled.js.map +1 -0
- package/dist/temporal/activities/index.d.ts +23 -0
- package/dist/temporal/activities/index.d.ts.map +1 -0
- package/dist/temporal/activities/index.js +26 -0
- package/dist/temporal/activities/index.js.map +1 -0
- package/dist/temporal/activities/orchestration-activities.d.ts +130 -0
- package/dist/temporal/activities/orchestration-activities.d.ts.map +1 -0
- package/dist/temporal/activities/orchestration-activities.js +188 -0
- package/dist/temporal/activities/orchestration-activities.js.map +1 -0
- package/dist/temporal/constants.d.ts +7 -0
- package/dist/temporal/constants.d.ts.map +1 -0
- package/dist/temporal/constants.js +8 -0
- package/dist/temporal/constants.js.map +1 -0
- package/dist/temporal/index.d.ts +3 -0
- package/dist/temporal/index.d.ts.map +1 -0
- package/dist/temporal/index.js +4 -0
- package/dist/temporal/index.js.map +1 -0
- package/dist/temporal/workflow-not-found.d.ts +2 -0
- package/dist/temporal/workflow-not-found.d.ts.map +1 -0
- package/dist/temporal/workflow-not-found.js +10 -0
- package/dist/temporal/workflow-not-found.js.map +1 -0
- package/dist/temporal/workflows/deadline.d.ts +3 -0
- package/dist/temporal/workflows/deadline.d.ts.map +1 -0
- package/dist/temporal/workflows/deadline.js +8 -0
- package/dist/temporal/workflows/deadline.js.map +1 -0
- package/dist/temporal/workflows/index.d.ts +4 -0
- package/dist/temporal/workflows/index.d.ts.map +1 -0
- package/dist/temporal/workflows/index.js +5 -0
- package/dist/temporal/workflows/index.js.map +1 -0
- package/dist/temporal/workflows/job-execution-orchestration.d.ts +27 -0
- package/dist/temporal/workflows/job-execution-orchestration.d.ts.map +1 -0
- package/dist/temporal/workflows/job-execution-orchestration.js +265 -0
- package/dist/temporal/workflows/job-execution-orchestration.js.map +1 -0
- package/dist/temporal/workflows/job-listener-orchestration.d.ts +40 -0
- package/dist/temporal/workflows/job-listener-orchestration.d.ts.map +1 -0
- package/dist/temporal/workflows/job-listener-orchestration.js +332 -0
- package/dist/temporal/workflows/job-listener-orchestration.js.map +1 -0
- package/dist/temporal/workflows/run-orchestration.d.ts +8 -0
- package/dist/temporal/workflows/run-orchestration.d.ts.map +1 -0
- package/dist/temporal/workflows/run-orchestration.js +243 -0
- package/dist/temporal/workflows/run-orchestration.js.map +1 -0
- package/dist/temporal/workflows/test-env.d.ts +114 -0
- package/dist/temporal/workflows/test-env.d.ts.map +1 -0
- package/dist/temporal/workflows/test-env.js +323 -0
- package/dist/temporal/workflows/test-env.js.map +1 -0
- package/dist/tsconfig.test.tsbuildinfo +1 -0
- package/drizzle/0000_initial.sql +211 -0
- package/drizzle/0001_agent_tool_materialization.sql +1 -0
- package/drizzle/meta/0000_snapshot.json +1613 -0
- package/drizzle/meta/_journal.json +20 -0
- package/drizzle.config.ts +7 -0
- package/package.json +91 -0
- package/src/core/README.md +79 -0
- package/src/core/agent-tool-capability-warning.test.ts +280 -0
- package/src/core/agent-tool-capability-warning.ts +200 -0
- package/src/core/agent-tools.ts +422 -0
- package/src/core/checkout.test.ts +112 -0
- package/src/core/checkout.ts +63 -0
- package/src/core/condition-trace.ts +64 -0
- package/src/core/entities/index.ts +9 -0
- package/src/core/entities/job-execution.ts +32 -0
- package/src/core/entities/job-listener-event.ts +15 -0
- package/src/core/entities/job.ts +91 -0
- package/src/core/entities/step.ts +126 -0
- package/src/core/entities/workflow-run-attempt.ts +21 -0
- package/src/core/entities/workflow-run.ts +94 -0
- package/src/core/errors.test.ts +45 -0
- package/src/core/errors.ts +209 -0
- package/src/core/index.ts +54 -0
- package/src/core/job-execution-outcome.ts +64 -0
- package/src/core/job-execution.test.ts +1560 -0
- package/src/core/job-execution.ts +581 -0
- package/src/core/job-transition/decide-job-activation.test.ts +196 -0
- package/src/core/job-transition/decide-job-activation.ts +79 -0
- package/src/core/job-transition/derive-job-execution-outputs.ts +41 -0
- package/src/core/job-transition/derive-job-success.test.ts +133 -0
- package/src/core/job-transition/derive-job-success.ts +67 -0
- package/src/core/job-transition/index.ts +11 -0
- package/src/core/job-transition/runtime-completion-status-for-job.ts +14 -0
- package/src/core/listener-execution-materialization.test.ts +49 -0
- package/src/core/listener-execution-materialization.ts +162 -0
- package/src/core/run-workflow.test.ts +229 -0
- package/src/core/run-workflow.ts +41 -0
- package/src/core/source-control.test.ts +17 -0
- package/src/core/source-control.ts +22 -0
- package/src/core/step-config/agent.ts +459 -0
- package/src/core/step-config/assemble-run-context.test.ts +1021 -0
- package/src/core/step-config/assemble-run-context.ts +535 -0
- package/src/core/step-config/complete-step-dispatch-config.test.ts +354 -0
- package/src/core/step-config/complete-step-dispatch-config.ts +40 -0
- package/src/core/step-config/fields.ts +111 -0
- package/src/core/step-config/index.ts +41 -0
- package/src/core/step-config/materialize-job-execution-steps.test.ts +494 -0
- package/src/core/step-config/materialize-job-execution-steps.ts +136 -0
- package/src/core/step-config/materialize-workflow-model.test.ts +1214 -0
- package/src/core/step-config/materialize-workflow-model.ts +140 -0
- package/src/core/step-config/resolve-job-execution-name.test.ts +94 -0
- package/src/core/step-config/resolve-job-execution-name.ts +51 -0
- package/src/core/step-config/resolve-step-config.ts +199 -0
- package/src/core/step-config/run.ts +467 -0
- package/src/core/step-config/workflow-evaluation-context.ts +6 -0
- package/src/core/step-transition/apply-step-transition.ts +163 -0
- package/src/core/step-transition/decide-step-transition.test.ts +307 -0
- package/src/core/step-transition/decide-step-transition.ts +200 -0
- package/src/core/step-transition/evaluate-gate.test.ts +317 -0
- package/src/core/step-transition/evaluate-gate.ts +168 -0
- package/src/core/step-transition/read-step-outputs.ts +27 -0
- package/src/core/workflow-run-creation.test.ts +155 -0
- package/src/core/workflow-run-creation.ts +131 -0
- package/src/core/workflow-scheduling/index.ts +15 -0
- package/src/core/workflow-scheduling/run-progress.test.ts +46 -0
- package/src/core/workflow-scheduling/run-progress.ts +68 -0
- package/src/core/workflow-scheduling/runtime-dag.ts +10 -0
- package/src/core/workflow-scheduling/runtime-scheduling-command.ts +20 -0
- package/src/core/workflow-scheduling/schedule-runtime-dag.test.ts +197 -0
- package/src/core/workflow-scheduling/schedule-runtime-dag.ts +115 -0
- package/src/db/db.ts +40 -0
- package/src/db/index.ts +86 -0
- package/src/db/job-listener-events.test.ts +113 -0
- package/src/db/job-listener-events.ts +73 -0
- package/src/db/job-listeners.test.ts +865 -0
- package/src/db/job-listeners.ts +564 -0
- package/src/db/outbox-writes.ts +40 -0
- package/src/db/rerun-listener.test.ts +64 -0
- package/src/db/run-timeout.test.ts +102 -0
- package/src/db/runner-lease-table.ts +39 -0
- package/src/db/schema/common.ts +3 -0
- package/src/db/schema/job-executions.ts +85 -0
- package/src/db/schema/job-listener-events.ts +58 -0
- package/src/db/schema/jobs.ts +136 -0
- package/src/db/schema/outbox.ts +4 -0
- package/src/db/schema/step-attempts.ts +99 -0
- package/src/db/schema/steps.ts +99 -0
- package/src/db/schema/workflow-run-attempts.ts +59 -0
- package/src/db/schema/workflow-runs.ts +112 -0
- package/src/db/workflow-runs/job-executions.test.ts +99 -0
- package/src/db/workflow-runs/job-executions.ts +421 -0
- package/src/db/workflow-runs/job-status.test.ts +532 -0
- package/src/db/workflow-runs/jobs.test.ts +194 -0
- package/src/db/workflow-runs/jobs.ts +418 -0
- package/src/db/workflow-runs/outbox.ts +109 -0
- package/src/db/workflow-runs/queries.test.ts +256 -0
- package/src/db/workflow-runs/queries.ts +437 -0
- package/src/db/workflow-runs/run-create.test.ts +1281 -0
- package/src/db/workflow-runs/run-create.ts +373 -0
- package/src/db/workflow-runs/run-graph.ts +95 -0
- package/src/db/workflow-runs/run-rerun.test.ts +625 -0
- package/src/db/workflow-runs/run-rerun.ts +266 -0
- package/src/db/workflow-runs/run-status.test.ts +425 -0
- package/src/db/workflow-runs/run-status.ts +391 -0
- package/src/db/workflow-runs/runs.ts +17 -0
- package/src/db/workflow-runs/shared.ts +84 -0
- package/src/db/workflow-runs/steps.test.ts +191 -0
- package/src/db/workflow-runs/steps.ts +476 -0
- package/src/db/workflow-runs.ts +111 -0
- package/src/index.ts +99 -0
- package/src/metrics/index.ts +1 -0
- package/src/metrics/instance.ts +160 -0
- package/src/metrics/service.ts +30 -0
- package/src/presentation/dto/checkout-token.test.ts +107 -0
- package/src/presentation/dto/checkout-token.ts +85 -0
- package/src/presentation/dto/index.ts +3 -0
- package/src/presentation/dto/job.test.ts +108 -0
- package/src/presentation/dto/job.ts +64 -0
- package/src/presentation/dto/step.test.ts +307 -0
- package/src/presentation/dto/step.ts +145 -0
- package/src/presentation/dto/workflow-run.ts +38 -0
- package/src/presentation/index.ts +10 -0
- package/src/presentation/routes/agent-runtime-config.test.ts +478 -0
- package/src/presentation/routes/agent-runtime-config.ts +81 -0
- package/src/presentation/routes/cancel-run.test.ts +156 -0
- package/src/presentation/routes/cancel-run.ts +37 -0
- package/src/presentation/routes/checkout-token.test.ts +366 -0
- package/src/presentation/routes/checkout-token.ts +61 -0
- package/src/presentation/routes/get-run-aggregates.test.ts +114 -0
- package/src/presentation/routes/get-run-aggregates.ts +69 -0
- package/src/presentation/routes/get-run.test.ts +604 -0
- package/src/presentation/routes/get-run.ts +66 -0
- package/src/presentation/routes/get-step-secrets.test.ts +260 -0
- package/src/presentation/routes/get-step-secrets.ts +117 -0
- package/src/presentation/routes/index.test.ts +71 -0
- package/src/presentation/routes/index.ts +42 -0
- package/src/presentation/routes/leased-step.ts +54 -0
- package/src/presentation/routes/list-run-attempts.test.ts +163 -0
- package/src/presentation/routes/list-run-attempts.ts +27 -0
- package/src/presentation/routes/list-runs.test.ts +244 -0
- package/src/presentation/routes/list-runs.ts +83 -0
- package/src/presentation/routes/next-step.test.ts +366 -0
- package/src/presentation/routes/next-step.ts +62 -0
- package/src/presentation/routes/report-step.test.ts +374 -0
- package/src/presentation/routes/report-step.ts +61 -0
- package/src/presentation/routes/require-accessible-run.ts +27 -0
- package/src/presentation/routes/rerun-run.test.ts +202 -0
- package/src/presentation/routes/rerun-run.ts +48 -0
- package/src/presentation/subscribers/index.ts +7 -0
- package/src/presentation/subscribers/on-job-event-delivered.test.ts +71 -0
- package/src/presentation/subscribers/on-job-event-delivered.ts +30 -0
- package/src/presentation/subscribers/on-job-steps-settled.test.ts +75 -0
- package/src/presentation/subscribers/on-job-steps-settled.ts +42 -0
- package/src/presentation/subscribers/on-runner-job-claimed.test.ts +57 -0
- package/src/presentation/subscribers/on-runner-job-claimed.ts +23 -0
- package/src/presentation/subscribers/on-runner-job-lease-expired.test.ts +73 -0
- package/src/presentation/subscribers/on-runner-job-lease-expired.ts +36 -0
- package/src/presentation/subscribers/on-runner-job-queued.test.ts +57 -0
- package/src/presentation/subscribers/on-runner-job-queued.ts +23 -0
- package/src/presentation/subscribers/on-workflow-run-attempt-created.test.ts +69 -0
- package/src/presentation/subscribers/on-workflow-run-attempt-created.ts +40 -0
- package/src/presentation/subscribers/on-workflow-run-cancelled.test.ts +59 -0
- package/src/presentation/subscribers/on-workflow-run-cancelled.ts +29 -0
- package/src/temporal/activities/index.ts +45 -0
- package/src/temporal/activities/orchestration-activities.test.ts +115 -0
- package/src/temporal/activities/orchestration-activities.ts +305 -0
- package/src/temporal/constants.ts +6 -0
- package/src/temporal/index.ts +6 -0
- package/src/temporal/workflow-not-found.ts +9 -0
- package/src/temporal/workflows/deadline.ts +7 -0
- package/src/temporal/workflows/index.ts +11 -0
- package/src/temporal/workflows/job-execution-orchestration-timeout.test.ts +165 -0
- package/src/temporal/workflows/job-execution-orchestration.test.ts +311 -0
- package/src/temporal/workflows/job-execution-orchestration.ts +314 -0
- package/src/temporal/workflows/job-listener-orchestration-continuation.test.ts +93 -0
- package/src/temporal/workflows/job-listener-orchestration.test.ts +406 -0
- package/src/temporal/workflows/job-listener-orchestration.ts +490 -0
- package/src/temporal/workflows/run-orchestration.test.ts +409 -0
- package/src/temporal/workflows/run-orchestration.ts +283 -0
- package/src/temporal/workflows/test-env.ts +409 -0
- package/test/env.ts +11 -0
- package/test/factories/job.ts +83 -0
- package/test/factories/project.ts +16 -0
- package/test/factories/workflow-model.test.ts +26 -0
- package/test/factories/workflow-model.ts +268 -0
- package/test/factories/workflow-run.ts +58 -0
- package/test/fixtures/active-lease-token.ts +85 -0
- package/test/fixtures/job-with-steps.ts +42 -0
- package/test/fixtures/lease-token.ts +44 -0
- package/test/fixtures/strip-setup-step.ts +23 -0
- package/test/globalSetup.ts +54 -0
- package/test/helpers/workflow-runs.ts +210 -0
- package/test/index.ts +3 -0
- package/test/setup.ts +17 -0
- package/tsconfig.build.json +9 -0
- package/tsconfig.build.tsbuildinfo +1 -0
- package/tsconfig.json +3 -0
- package/tsconfig.test.json +8 -0
- package/vitest.config.ts +12 -0
|
@@ -0,0 +1,1613 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "d499edbd-b3b6-4d33-9934-22471a9a2e6a",
|
|
3
|
+
"prevId": "00000000-0000-0000-0000-000000000000",
|
|
4
|
+
"version": "7",
|
|
5
|
+
"dialect": "postgresql",
|
|
6
|
+
"tables": {
|
|
7
|
+
"public.workflows_job_executions": {
|
|
8
|
+
"name": "workflows_job_executions",
|
|
9
|
+
"schema": "",
|
|
10
|
+
"columns": {
|
|
11
|
+
"id": {
|
|
12
|
+
"name": "id",
|
|
13
|
+
"type": "uuid",
|
|
14
|
+
"primaryKey": true,
|
|
15
|
+
"notNull": true,
|
|
16
|
+
"default": "uuidv7()"
|
|
17
|
+
},
|
|
18
|
+
"job_id": {
|
|
19
|
+
"name": "job_id",
|
|
20
|
+
"type": "uuid",
|
|
21
|
+
"primaryKey": false,
|
|
22
|
+
"notNull": true
|
|
23
|
+
},
|
|
24
|
+
"sequence": {
|
|
25
|
+
"name": "sequence",
|
|
26
|
+
"type": "integer",
|
|
27
|
+
"primaryKey": false,
|
|
28
|
+
"notNull": true
|
|
29
|
+
},
|
|
30
|
+
"name": {
|
|
31
|
+
"name": "name",
|
|
32
|
+
"type": "text",
|
|
33
|
+
"primaryKey": false,
|
|
34
|
+
"notNull": true
|
|
35
|
+
},
|
|
36
|
+
"runner": {
|
|
37
|
+
"name": "runner",
|
|
38
|
+
"type": "jsonb",
|
|
39
|
+
"primaryKey": false,
|
|
40
|
+
"notNull": false
|
|
41
|
+
},
|
|
42
|
+
"status": {
|
|
43
|
+
"name": "status",
|
|
44
|
+
"type": "workflows_job_execution_status",
|
|
45
|
+
"typeSchema": "public",
|
|
46
|
+
"primaryKey": false,
|
|
47
|
+
"notNull": true,
|
|
48
|
+
"default": "'pending'"
|
|
49
|
+
},
|
|
50
|
+
"status_reason": {
|
|
51
|
+
"name": "status_reason",
|
|
52
|
+
"type": "workflows_job_status_reason",
|
|
53
|
+
"typeSchema": "public",
|
|
54
|
+
"primaryKey": false,
|
|
55
|
+
"notNull": false
|
|
56
|
+
},
|
|
57
|
+
"trigger_events": {
|
|
58
|
+
"name": "trigger_events",
|
|
59
|
+
"type": "jsonb",
|
|
60
|
+
"primaryKey": false,
|
|
61
|
+
"notNull": true,
|
|
62
|
+
"default": "'[]'::jsonb"
|
|
63
|
+
},
|
|
64
|
+
"outputs": {
|
|
65
|
+
"name": "outputs",
|
|
66
|
+
"type": "jsonb",
|
|
67
|
+
"primaryKey": false,
|
|
68
|
+
"notNull": false
|
|
69
|
+
},
|
|
70
|
+
"evaluation_trace": {
|
|
71
|
+
"name": "evaluation_trace",
|
|
72
|
+
"type": "jsonb",
|
|
73
|
+
"primaryKey": false,
|
|
74
|
+
"notNull": false
|
|
75
|
+
},
|
|
76
|
+
"version": {
|
|
77
|
+
"name": "version",
|
|
78
|
+
"type": "integer",
|
|
79
|
+
"primaryKey": false,
|
|
80
|
+
"notNull": true,
|
|
81
|
+
"default": 1
|
|
82
|
+
},
|
|
83
|
+
"created_at": {
|
|
84
|
+
"name": "created_at",
|
|
85
|
+
"type": "timestamp with time zone",
|
|
86
|
+
"primaryKey": false,
|
|
87
|
+
"notNull": true,
|
|
88
|
+
"default": "now()"
|
|
89
|
+
},
|
|
90
|
+
"updated_at": {
|
|
91
|
+
"name": "updated_at",
|
|
92
|
+
"type": "timestamp with time zone",
|
|
93
|
+
"primaryKey": false,
|
|
94
|
+
"notNull": true,
|
|
95
|
+
"default": "now()"
|
|
96
|
+
},
|
|
97
|
+
"queued_at": {
|
|
98
|
+
"name": "queued_at",
|
|
99
|
+
"type": "timestamp with time zone",
|
|
100
|
+
"primaryKey": false,
|
|
101
|
+
"notNull": false
|
|
102
|
+
},
|
|
103
|
+
"started_at": {
|
|
104
|
+
"name": "started_at",
|
|
105
|
+
"type": "timestamp with time zone",
|
|
106
|
+
"primaryKey": false,
|
|
107
|
+
"notNull": false
|
|
108
|
+
},
|
|
109
|
+
"finished_at": {
|
|
110
|
+
"name": "finished_at",
|
|
111
|
+
"type": "timestamp with time zone",
|
|
112
|
+
"primaryKey": false,
|
|
113
|
+
"notNull": false
|
|
114
|
+
},
|
|
115
|
+
"timed_out_at": {
|
|
116
|
+
"name": "timed_out_at",
|
|
117
|
+
"type": "timestamp with time zone",
|
|
118
|
+
"primaryKey": false,
|
|
119
|
+
"notNull": false
|
|
120
|
+
}
|
|
121
|
+
},
|
|
122
|
+
"indexes": {
|
|
123
|
+
"workflows_job_executions_job_id_idx": {
|
|
124
|
+
"name": "workflows_job_executions_job_id_idx",
|
|
125
|
+
"columns": [
|
|
126
|
+
{
|
|
127
|
+
"expression": "job_id",
|
|
128
|
+
"isExpression": false,
|
|
129
|
+
"asc": true,
|
|
130
|
+
"nulls": "last"
|
|
131
|
+
}
|
|
132
|
+
],
|
|
133
|
+
"isUnique": false,
|
|
134
|
+
"concurrently": false,
|
|
135
|
+
"method": "btree",
|
|
136
|
+
"with": {}
|
|
137
|
+
},
|
|
138
|
+
"workflows_job_executions_running_idx": {
|
|
139
|
+
"name": "workflows_job_executions_running_idx",
|
|
140
|
+
"columns": [
|
|
141
|
+
{
|
|
142
|
+
"expression": "status",
|
|
143
|
+
"isExpression": false,
|
|
144
|
+
"asc": true,
|
|
145
|
+
"nulls": "last"
|
|
146
|
+
}
|
|
147
|
+
],
|
|
148
|
+
"isUnique": false,
|
|
149
|
+
"where": "\"workflows_job_executions\".\"status\" = 'running'",
|
|
150
|
+
"concurrently": false,
|
|
151
|
+
"method": "btree",
|
|
152
|
+
"with": {}
|
|
153
|
+
},
|
|
154
|
+
"workflows_job_executions_job_sequence_uq": {
|
|
155
|
+
"name": "workflows_job_executions_job_sequence_uq",
|
|
156
|
+
"columns": [
|
|
157
|
+
{
|
|
158
|
+
"expression": "job_id",
|
|
159
|
+
"isExpression": false,
|
|
160
|
+
"asc": true,
|
|
161
|
+
"nulls": "last"
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
"expression": "sequence",
|
|
165
|
+
"isExpression": false,
|
|
166
|
+
"asc": true,
|
|
167
|
+
"nulls": "last"
|
|
168
|
+
}
|
|
169
|
+
],
|
|
170
|
+
"isUnique": true,
|
|
171
|
+
"concurrently": false,
|
|
172
|
+
"method": "btree",
|
|
173
|
+
"with": {}
|
|
174
|
+
}
|
|
175
|
+
},
|
|
176
|
+
"foreignKeys": {
|
|
177
|
+
"workflows_job_executions_job_id_workflows_jobs_id_fk": {
|
|
178
|
+
"name": "workflows_job_executions_job_id_workflows_jobs_id_fk",
|
|
179
|
+
"tableFrom": "workflows_job_executions",
|
|
180
|
+
"tableTo": "workflows_jobs",
|
|
181
|
+
"columnsFrom": ["job_id"],
|
|
182
|
+
"columnsTo": ["id"],
|
|
183
|
+
"onDelete": "cascade",
|
|
184
|
+
"onUpdate": "no action"
|
|
185
|
+
}
|
|
186
|
+
},
|
|
187
|
+
"compositePrimaryKeys": {},
|
|
188
|
+
"uniqueConstraints": {},
|
|
189
|
+
"policies": {},
|
|
190
|
+
"checkConstraints": {},
|
|
191
|
+
"isRLSEnabled": false
|
|
192
|
+
},
|
|
193
|
+
"public.workflows_job_listener_events": {
|
|
194
|
+
"name": "workflows_job_listener_events",
|
|
195
|
+
"schema": "",
|
|
196
|
+
"columns": {
|
|
197
|
+
"id": {
|
|
198
|
+
"name": "id",
|
|
199
|
+
"type": "uuid",
|
|
200
|
+
"primaryKey": true,
|
|
201
|
+
"notNull": true,
|
|
202
|
+
"default": "uuidv7()"
|
|
203
|
+
},
|
|
204
|
+
"job_id": {
|
|
205
|
+
"name": "job_id",
|
|
206
|
+
"type": "uuid",
|
|
207
|
+
"primaryKey": false,
|
|
208
|
+
"notNull": true
|
|
209
|
+
},
|
|
210
|
+
"disposition": {
|
|
211
|
+
"name": "disposition",
|
|
212
|
+
"type": "workflows_job_listener_event_disposition",
|
|
213
|
+
"typeSchema": "public",
|
|
214
|
+
"primaryKey": false,
|
|
215
|
+
"notNull": true
|
|
216
|
+
},
|
|
217
|
+
"event_ref": {
|
|
218
|
+
"name": "event_ref",
|
|
219
|
+
"type": "text",
|
|
220
|
+
"primaryKey": false,
|
|
221
|
+
"notNull": true
|
|
222
|
+
},
|
|
223
|
+
"delivery_id": {
|
|
224
|
+
"name": "delivery_id",
|
|
225
|
+
"type": "text",
|
|
226
|
+
"primaryKey": false,
|
|
227
|
+
"notNull": true
|
|
228
|
+
},
|
|
229
|
+
"source": {
|
|
230
|
+
"name": "source",
|
|
231
|
+
"type": "text",
|
|
232
|
+
"primaryKey": false,
|
|
233
|
+
"notNull": true
|
|
234
|
+
},
|
|
235
|
+
"event": {
|
|
236
|
+
"name": "event",
|
|
237
|
+
"type": "text",
|
|
238
|
+
"primaryKey": false,
|
|
239
|
+
"notNull": true
|
|
240
|
+
},
|
|
241
|
+
"payload": {
|
|
242
|
+
"name": "payload",
|
|
243
|
+
"type": "jsonb",
|
|
244
|
+
"primaryKey": false,
|
|
245
|
+
"notNull": true
|
|
246
|
+
},
|
|
247
|
+
"received_at": {
|
|
248
|
+
"name": "received_at",
|
|
249
|
+
"type": "timestamp with time zone",
|
|
250
|
+
"primaryKey": false,
|
|
251
|
+
"notNull": true
|
|
252
|
+
},
|
|
253
|
+
"consumed_by_execution_id": {
|
|
254
|
+
"name": "consumed_by_execution_id",
|
|
255
|
+
"type": "uuid",
|
|
256
|
+
"primaryKey": false,
|
|
257
|
+
"notNull": false
|
|
258
|
+
},
|
|
259
|
+
"created_at": {
|
|
260
|
+
"name": "created_at",
|
|
261
|
+
"type": "timestamp with time zone",
|
|
262
|
+
"primaryKey": false,
|
|
263
|
+
"notNull": true,
|
|
264
|
+
"default": "now()"
|
|
265
|
+
}
|
|
266
|
+
},
|
|
267
|
+
"indexes": {
|
|
268
|
+
"workflows_job_listener_events_job_event_ref_unique": {
|
|
269
|
+
"name": "workflows_job_listener_events_job_event_ref_unique",
|
|
270
|
+
"columns": [
|
|
271
|
+
{
|
|
272
|
+
"expression": "job_id",
|
|
273
|
+
"isExpression": false,
|
|
274
|
+
"asc": true,
|
|
275
|
+
"nulls": "last"
|
|
276
|
+
},
|
|
277
|
+
{
|
|
278
|
+
"expression": "event_ref",
|
|
279
|
+
"isExpression": false,
|
|
280
|
+
"asc": true,
|
|
281
|
+
"nulls": "last"
|
|
282
|
+
}
|
|
283
|
+
],
|
|
284
|
+
"isUnique": true,
|
|
285
|
+
"concurrently": false,
|
|
286
|
+
"method": "btree",
|
|
287
|
+
"with": {}
|
|
288
|
+
},
|
|
289
|
+
"workflows_job_listener_events_job_received_idx": {
|
|
290
|
+
"name": "workflows_job_listener_events_job_received_idx",
|
|
291
|
+
"columns": [
|
|
292
|
+
{
|
|
293
|
+
"expression": "job_id",
|
|
294
|
+
"isExpression": false,
|
|
295
|
+
"asc": true,
|
|
296
|
+
"nulls": "last"
|
|
297
|
+
},
|
|
298
|
+
{
|
|
299
|
+
"expression": "received_at",
|
|
300
|
+
"isExpression": false,
|
|
301
|
+
"asc": true,
|
|
302
|
+
"nulls": "last"
|
|
303
|
+
}
|
|
304
|
+
],
|
|
305
|
+
"isUnique": false,
|
|
306
|
+
"concurrently": false,
|
|
307
|
+
"method": "btree",
|
|
308
|
+
"with": {}
|
|
309
|
+
}
|
|
310
|
+
},
|
|
311
|
+
"foreignKeys": {
|
|
312
|
+
"workflows_job_listener_events_job_id_workflows_jobs_id_fk": {
|
|
313
|
+
"name": "workflows_job_listener_events_job_id_workflows_jobs_id_fk",
|
|
314
|
+
"tableFrom": "workflows_job_listener_events",
|
|
315
|
+
"tableTo": "workflows_jobs",
|
|
316
|
+
"columnsFrom": ["job_id"],
|
|
317
|
+
"columnsTo": ["id"],
|
|
318
|
+
"onDelete": "cascade",
|
|
319
|
+
"onUpdate": "no action"
|
|
320
|
+
},
|
|
321
|
+
"workflows_job_listener_events_consumed_by_execution_id_workflows_job_executions_id_fk": {
|
|
322
|
+
"name": "workflows_job_listener_events_consumed_by_execution_id_workflows_job_executions_id_fk",
|
|
323
|
+
"tableFrom": "workflows_job_listener_events",
|
|
324
|
+
"tableTo": "workflows_job_executions",
|
|
325
|
+
"columnsFrom": ["consumed_by_execution_id"],
|
|
326
|
+
"columnsTo": ["id"],
|
|
327
|
+
"onDelete": "set null",
|
|
328
|
+
"onUpdate": "no action"
|
|
329
|
+
}
|
|
330
|
+
},
|
|
331
|
+
"compositePrimaryKeys": {},
|
|
332
|
+
"uniqueConstraints": {},
|
|
333
|
+
"policies": {},
|
|
334
|
+
"checkConstraints": {},
|
|
335
|
+
"isRLSEnabled": false
|
|
336
|
+
},
|
|
337
|
+
"public.workflows_jobs": {
|
|
338
|
+
"name": "workflows_jobs",
|
|
339
|
+
"schema": "",
|
|
340
|
+
"columns": {
|
|
341
|
+
"id": {
|
|
342
|
+
"name": "id",
|
|
343
|
+
"type": "uuid",
|
|
344
|
+
"primaryKey": true,
|
|
345
|
+
"notNull": true,
|
|
346
|
+
"default": "uuidv7()"
|
|
347
|
+
},
|
|
348
|
+
"workflow_run_attempt_id": {
|
|
349
|
+
"name": "workflow_run_attempt_id",
|
|
350
|
+
"type": "uuid",
|
|
351
|
+
"primaryKey": false,
|
|
352
|
+
"notNull": true
|
|
353
|
+
},
|
|
354
|
+
"key": {
|
|
355
|
+
"name": "key",
|
|
356
|
+
"type": "text",
|
|
357
|
+
"primaryKey": false,
|
|
358
|
+
"notNull": true
|
|
359
|
+
},
|
|
360
|
+
"mode": {
|
|
361
|
+
"name": "mode",
|
|
362
|
+
"type": "workflows_job_mode",
|
|
363
|
+
"typeSchema": "public",
|
|
364
|
+
"primaryKey": false,
|
|
365
|
+
"notNull": true,
|
|
366
|
+
"default": "'one_shot'"
|
|
367
|
+
},
|
|
368
|
+
"name": {
|
|
369
|
+
"name": "name",
|
|
370
|
+
"type": "text",
|
|
371
|
+
"primaryKey": false,
|
|
372
|
+
"notNull": false
|
|
373
|
+
},
|
|
374
|
+
"status": {
|
|
375
|
+
"name": "status",
|
|
376
|
+
"type": "workflows_job_status",
|
|
377
|
+
"typeSchema": "public",
|
|
378
|
+
"primaryKey": false,
|
|
379
|
+
"notNull": true,
|
|
380
|
+
"default": "'pending'"
|
|
381
|
+
},
|
|
382
|
+
"status_reason": {
|
|
383
|
+
"name": "status_reason",
|
|
384
|
+
"type": "workflows_job_status_reason",
|
|
385
|
+
"typeSchema": "public",
|
|
386
|
+
"primaryKey": false,
|
|
387
|
+
"notNull": false
|
|
388
|
+
},
|
|
389
|
+
"carried_over": {
|
|
390
|
+
"name": "carried_over",
|
|
391
|
+
"type": "boolean",
|
|
392
|
+
"primaryKey": false,
|
|
393
|
+
"notNull": true,
|
|
394
|
+
"default": false
|
|
395
|
+
},
|
|
396
|
+
"checkout_persist_credentials": {
|
|
397
|
+
"name": "checkout_persist_credentials",
|
|
398
|
+
"type": "boolean",
|
|
399
|
+
"primaryKey": false,
|
|
400
|
+
"notNull": true
|
|
401
|
+
},
|
|
402
|
+
"checkout_permissions_contents": {
|
|
403
|
+
"name": "checkout_permissions_contents",
|
|
404
|
+
"type": "workflows_checkout_contents",
|
|
405
|
+
"typeSchema": "public",
|
|
406
|
+
"primaryKey": false,
|
|
407
|
+
"notNull": true
|
|
408
|
+
},
|
|
409
|
+
"success": {
|
|
410
|
+
"name": "success",
|
|
411
|
+
"type": "text",
|
|
412
|
+
"primaryKey": false,
|
|
413
|
+
"notNull": false
|
|
414
|
+
},
|
|
415
|
+
"evaluation_trace": {
|
|
416
|
+
"name": "evaluation_trace",
|
|
417
|
+
"type": "jsonb",
|
|
418
|
+
"primaryKey": false,
|
|
419
|
+
"notNull": false
|
|
420
|
+
},
|
|
421
|
+
"execution_timeout_ms": {
|
|
422
|
+
"name": "execution_timeout_ms",
|
|
423
|
+
"type": "integer",
|
|
424
|
+
"primaryKey": false,
|
|
425
|
+
"notNull": false
|
|
426
|
+
},
|
|
427
|
+
"listening_timeout_ms": {
|
|
428
|
+
"name": "listening_timeout_ms",
|
|
429
|
+
"type": "bigint",
|
|
430
|
+
"primaryKey": false,
|
|
431
|
+
"notNull": false
|
|
432
|
+
},
|
|
433
|
+
"max_executions": {
|
|
434
|
+
"name": "max_executions",
|
|
435
|
+
"type": "integer",
|
|
436
|
+
"primaryKey": false,
|
|
437
|
+
"notNull": false
|
|
438
|
+
},
|
|
439
|
+
"on_resolve": {
|
|
440
|
+
"name": "on_resolve",
|
|
441
|
+
"type": "workflows_job_on_resolve",
|
|
442
|
+
"typeSchema": "public",
|
|
443
|
+
"primaryKey": false,
|
|
444
|
+
"notNull": false
|
|
445
|
+
},
|
|
446
|
+
"batch_debounce_ms": {
|
|
447
|
+
"name": "batch_debounce_ms",
|
|
448
|
+
"type": "integer",
|
|
449
|
+
"primaryKey": false,
|
|
450
|
+
"notNull": false
|
|
451
|
+
},
|
|
452
|
+
"batch_max_size": {
|
|
453
|
+
"name": "batch_max_size",
|
|
454
|
+
"type": "integer",
|
|
455
|
+
"primaryKey": false,
|
|
456
|
+
"notNull": false
|
|
457
|
+
},
|
|
458
|
+
"batch_max_wait_ms": {
|
|
459
|
+
"name": "batch_max_wait_ms",
|
|
460
|
+
"type": "integer",
|
|
461
|
+
"primaryKey": false,
|
|
462
|
+
"notNull": false
|
|
463
|
+
},
|
|
464
|
+
"listener_status": {
|
|
465
|
+
"name": "listener_status",
|
|
466
|
+
"type": "workflows_listener_status",
|
|
467
|
+
"typeSchema": "public",
|
|
468
|
+
"primaryKey": false,
|
|
469
|
+
"notNull": true,
|
|
470
|
+
"default": "'inactive'"
|
|
471
|
+
},
|
|
472
|
+
"resolution_reason": {
|
|
473
|
+
"name": "resolution_reason",
|
|
474
|
+
"type": "workflows_resolution_reason",
|
|
475
|
+
"typeSchema": "public",
|
|
476
|
+
"primaryKey": false,
|
|
477
|
+
"notNull": false
|
|
478
|
+
},
|
|
479
|
+
"listening_on": {
|
|
480
|
+
"name": "listening_on",
|
|
481
|
+
"type": "jsonb",
|
|
482
|
+
"primaryKey": false,
|
|
483
|
+
"notNull": false
|
|
484
|
+
},
|
|
485
|
+
"listening_until": {
|
|
486
|
+
"name": "listening_until",
|
|
487
|
+
"type": "jsonb",
|
|
488
|
+
"primaryKey": false,
|
|
489
|
+
"notNull": false
|
|
490
|
+
},
|
|
491
|
+
"outputs": {
|
|
492
|
+
"name": "outputs",
|
|
493
|
+
"type": "jsonb",
|
|
494
|
+
"primaryKey": false,
|
|
495
|
+
"notNull": false
|
|
496
|
+
},
|
|
497
|
+
"dependencies": {
|
|
498
|
+
"name": "dependencies",
|
|
499
|
+
"type": "jsonb",
|
|
500
|
+
"primaryKey": false,
|
|
501
|
+
"notNull": true
|
|
502
|
+
},
|
|
503
|
+
"runner": {
|
|
504
|
+
"name": "runner",
|
|
505
|
+
"type": "jsonb",
|
|
506
|
+
"primaryKey": false,
|
|
507
|
+
"notNull": false
|
|
508
|
+
},
|
|
509
|
+
"position": {
|
|
510
|
+
"name": "position",
|
|
511
|
+
"type": "integer",
|
|
512
|
+
"primaryKey": false,
|
|
513
|
+
"notNull": true
|
|
514
|
+
},
|
|
515
|
+
"version": {
|
|
516
|
+
"name": "version",
|
|
517
|
+
"type": "integer",
|
|
518
|
+
"primaryKey": false,
|
|
519
|
+
"notNull": true,
|
|
520
|
+
"default": 1
|
|
521
|
+
},
|
|
522
|
+
"created_at": {
|
|
523
|
+
"name": "created_at",
|
|
524
|
+
"type": "timestamp with time zone",
|
|
525
|
+
"primaryKey": false,
|
|
526
|
+
"notNull": true,
|
|
527
|
+
"default": "now()"
|
|
528
|
+
},
|
|
529
|
+
"updated_at": {
|
|
530
|
+
"name": "updated_at",
|
|
531
|
+
"type": "timestamp with time zone",
|
|
532
|
+
"primaryKey": false,
|
|
533
|
+
"notNull": true,
|
|
534
|
+
"default": "now()"
|
|
535
|
+
}
|
|
536
|
+
},
|
|
537
|
+
"indexes": {
|
|
538
|
+
"workflows_jobs_workflow_run_attempt_id_idx": {
|
|
539
|
+
"name": "workflows_jobs_workflow_run_attempt_id_idx",
|
|
540
|
+
"columns": [
|
|
541
|
+
{
|
|
542
|
+
"expression": "workflow_run_attempt_id",
|
|
543
|
+
"isExpression": false,
|
|
544
|
+
"asc": true,
|
|
545
|
+
"nulls": "last"
|
|
546
|
+
}
|
|
547
|
+
],
|
|
548
|
+
"isUnique": false,
|
|
549
|
+
"concurrently": false,
|
|
550
|
+
"method": "btree",
|
|
551
|
+
"with": {}
|
|
552
|
+
},
|
|
553
|
+
"workflows_jobs_active_listeners_idx": {
|
|
554
|
+
"name": "workflows_jobs_active_listeners_idx",
|
|
555
|
+
"columns": [
|
|
556
|
+
{
|
|
557
|
+
"expression": "listener_status",
|
|
558
|
+
"isExpression": false,
|
|
559
|
+
"asc": true,
|
|
560
|
+
"nulls": "last"
|
|
561
|
+
}
|
|
562
|
+
],
|
|
563
|
+
"isUnique": false,
|
|
564
|
+
"where": "\"workflows_jobs\".\"listener_status\" = 'listening'",
|
|
565
|
+
"concurrently": false,
|
|
566
|
+
"method": "btree",
|
|
567
|
+
"with": {}
|
|
568
|
+
}
|
|
569
|
+
},
|
|
570
|
+
"foreignKeys": {
|
|
571
|
+
"workflows_jobs_workflow_run_attempt_id_workflows_workflow_run_attempts_id_fk": {
|
|
572
|
+
"name": "workflows_jobs_workflow_run_attempt_id_workflows_workflow_run_attempts_id_fk",
|
|
573
|
+
"tableFrom": "workflows_jobs",
|
|
574
|
+
"tableTo": "workflows_workflow_run_attempts",
|
|
575
|
+
"columnsFrom": ["workflow_run_attempt_id"],
|
|
576
|
+
"columnsTo": ["id"],
|
|
577
|
+
"onDelete": "cascade",
|
|
578
|
+
"onUpdate": "no action"
|
|
579
|
+
}
|
|
580
|
+
},
|
|
581
|
+
"compositePrimaryKeys": {},
|
|
582
|
+
"uniqueConstraints": {},
|
|
583
|
+
"policies": {},
|
|
584
|
+
"checkConstraints": {},
|
|
585
|
+
"isRLSEnabled": false
|
|
586
|
+
},
|
|
587
|
+
"public.workflows_outbox": {
|
|
588
|
+
"name": "workflows_outbox",
|
|
589
|
+
"schema": "",
|
|
590
|
+
"columns": {
|
|
591
|
+
"id": {
|
|
592
|
+
"name": "id",
|
|
593
|
+
"type": "uuid",
|
|
594
|
+
"primaryKey": true,
|
|
595
|
+
"notNull": true,
|
|
596
|
+
"default": "uuidv7()"
|
|
597
|
+
},
|
|
598
|
+
"event_type": {
|
|
599
|
+
"name": "event_type",
|
|
600
|
+
"type": "text",
|
|
601
|
+
"primaryKey": false,
|
|
602
|
+
"notNull": true
|
|
603
|
+
},
|
|
604
|
+
"ordering_key": {
|
|
605
|
+
"name": "ordering_key",
|
|
606
|
+
"type": "text",
|
|
607
|
+
"primaryKey": false,
|
|
608
|
+
"notNull": false
|
|
609
|
+
},
|
|
610
|
+
"payload": {
|
|
611
|
+
"name": "payload",
|
|
612
|
+
"type": "jsonb",
|
|
613
|
+
"primaryKey": false,
|
|
614
|
+
"notNull": true
|
|
615
|
+
},
|
|
616
|
+
"created_at": {
|
|
617
|
+
"name": "created_at",
|
|
618
|
+
"type": "timestamp with time zone",
|
|
619
|
+
"primaryKey": false,
|
|
620
|
+
"notNull": true,
|
|
621
|
+
"default": "now()"
|
|
622
|
+
},
|
|
623
|
+
"dispatched_at": {
|
|
624
|
+
"name": "dispatched_at",
|
|
625
|
+
"type": "timestamp with time zone",
|
|
626
|
+
"primaryKey": false,
|
|
627
|
+
"notNull": false
|
|
628
|
+
},
|
|
629
|
+
"dispatch_attempts": {
|
|
630
|
+
"name": "dispatch_attempts",
|
|
631
|
+
"type": "integer",
|
|
632
|
+
"primaryKey": false,
|
|
633
|
+
"notNull": true,
|
|
634
|
+
"default": 0
|
|
635
|
+
},
|
|
636
|
+
"next_dispatch_at": {
|
|
637
|
+
"name": "next_dispatch_at",
|
|
638
|
+
"type": "timestamp with time zone",
|
|
639
|
+
"primaryKey": false,
|
|
640
|
+
"notNull": true,
|
|
641
|
+
"default": "now()"
|
|
642
|
+
},
|
|
643
|
+
"last_dispatch_error": {
|
|
644
|
+
"name": "last_dispatch_error",
|
|
645
|
+
"type": "jsonb",
|
|
646
|
+
"primaryKey": false,
|
|
647
|
+
"notNull": false
|
|
648
|
+
},
|
|
649
|
+
"last_dispatch_failed_at": {
|
|
650
|
+
"name": "last_dispatch_failed_at",
|
|
651
|
+
"type": "timestamp with time zone",
|
|
652
|
+
"primaryKey": false,
|
|
653
|
+
"notNull": false
|
|
654
|
+
},
|
|
655
|
+
"dead_lettered_at": {
|
|
656
|
+
"name": "dead_lettered_at",
|
|
657
|
+
"type": "timestamp with time zone",
|
|
658
|
+
"primaryKey": false,
|
|
659
|
+
"notNull": false
|
|
660
|
+
}
|
|
661
|
+
},
|
|
662
|
+
"indexes": {
|
|
663
|
+
"workflows_outbox_pending_idx": {
|
|
664
|
+
"name": "workflows_outbox_pending_idx",
|
|
665
|
+
"columns": [
|
|
666
|
+
{
|
|
667
|
+
"expression": "next_dispatch_at",
|
|
668
|
+
"isExpression": false,
|
|
669
|
+
"asc": true,
|
|
670
|
+
"nulls": "last"
|
|
671
|
+
},
|
|
672
|
+
{
|
|
673
|
+
"expression": "created_at",
|
|
674
|
+
"isExpression": false,
|
|
675
|
+
"asc": true,
|
|
676
|
+
"nulls": "last"
|
|
677
|
+
}
|
|
678
|
+
],
|
|
679
|
+
"isUnique": false,
|
|
680
|
+
"where": "\"dispatched_at\" IS NULL AND \"dead_lettered_at\" IS NULL",
|
|
681
|
+
"concurrently": false,
|
|
682
|
+
"method": "btree",
|
|
683
|
+
"with": {}
|
|
684
|
+
},
|
|
685
|
+
"workflows_outbox_dispatched_retention_idx": {
|
|
686
|
+
"name": "workflows_outbox_dispatched_retention_idx",
|
|
687
|
+
"columns": [
|
|
688
|
+
{
|
|
689
|
+
"expression": "dispatched_at",
|
|
690
|
+
"isExpression": false,
|
|
691
|
+
"asc": true,
|
|
692
|
+
"nulls": "last"
|
|
693
|
+
},
|
|
694
|
+
{
|
|
695
|
+
"expression": "id",
|
|
696
|
+
"isExpression": false,
|
|
697
|
+
"asc": true,
|
|
698
|
+
"nulls": "last"
|
|
699
|
+
}
|
|
700
|
+
],
|
|
701
|
+
"isUnique": false,
|
|
702
|
+
"where": "\"dispatched_at\" IS NOT NULL",
|
|
703
|
+
"concurrently": false,
|
|
704
|
+
"method": "btree",
|
|
705
|
+
"with": {}
|
|
706
|
+
}
|
|
707
|
+
},
|
|
708
|
+
"foreignKeys": {},
|
|
709
|
+
"compositePrimaryKeys": {},
|
|
710
|
+
"uniqueConstraints": {},
|
|
711
|
+
"policies": {},
|
|
712
|
+
"checkConstraints": {},
|
|
713
|
+
"isRLSEnabled": false
|
|
714
|
+
},
|
|
715
|
+
"public.workflows_step_attempts": {
|
|
716
|
+
"name": "workflows_step_attempts",
|
|
717
|
+
"schema": "",
|
|
718
|
+
"columns": {
|
|
719
|
+
"id": {
|
|
720
|
+
"name": "id",
|
|
721
|
+
"type": "uuid",
|
|
722
|
+
"primaryKey": true,
|
|
723
|
+
"notNull": true,
|
|
724
|
+
"default": "uuidv7()"
|
|
725
|
+
},
|
|
726
|
+
"step_id": {
|
|
727
|
+
"name": "step_id",
|
|
728
|
+
"type": "uuid",
|
|
729
|
+
"primaryKey": false,
|
|
730
|
+
"notNull": true
|
|
731
|
+
},
|
|
732
|
+
"job_execution_id": {
|
|
733
|
+
"name": "job_execution_id",
|
|
734
|
+
"type": "uuid",
|
|
735
|
+
"primaryKey": false,
|
|
736
|
+
"notNull": true
|
|
737
|
+
},
|
|
738
|
+
"attempt": {
|
|
739
|
+
"name": "attempt",
|
|
740
|
+
"type": "integer",
|
|
741
|
+
"primaryKey": false,
|
|
742
|
+
"notNull": true
|
|
743
|
+
},
|
|
744
|
+
"execution_order": {
|
|
745
|
+
"name": "execution_order",
|
|
746
|
+
"type": "integer",
|
|
747
|
+
"primaryKey": false,
|
|
748
|
+
"notNull": true
|
|
749
|
+
},
|
|
750
|
+
"status": {
|
|
751
|
+
"name": "status",
|
|
752
|
+
"type": "workflows_step_status",
|
|
753
|
+
"typeSchema": "public",
|
|
754
|
+
"primaryKey": false,
|
|
755
|
+
"notNull": true
|
|
756
|
+
},
|
|
757
|
+
"config": {
|
|
758
|
+
"name": "config",
|
|
759
|
+
"type": "jsonb",
|
|
760
|
+
"primaryKey": false,
|
|
761
|
+
"notNull": false
|
|
762
|
+
},
|
|
763
|
+
"evaluation_trace": {
|
|
764
|
+
"name": "evaluation_trace",
|
|
765
|
+
"type": "jsonb",
|
|
766
|
+
"primaryKey": false,
|
|
767
|
+
"notNull": false
|
|
768
|
+
},
|
|
769
|
+
"output": {
|
|
770
|
+
"name": "output",
|
|
771
|
+
"type": "jsonb",
|
|
772
|
+
"primaryKey": false,
|
|
773
|
+
"notNull": false
|
|
774
|
+
},
|
|
775
|
+
"response": {
|
|
776
|
+
"name": "response",
|
|
777
|
+
"type": "text",
|
|
778
|
+
"primaryKey": false,
|
|
779
|
+
"notNull": false
|
|
780
|
+
},
|
|
781
|
+
"error": {
|
|
782
|
+
"name": "error",
|
|
783
|
+
"type": "jsonb",
|
|
784
|
+
"primaryKey": false,
|
|
785
|
+
"notNull": false
|
|
786
|
+
},
|
|
787
|
+
"exit_code": {
|
|
788
|
+
"name": "exit_code",
|
|
789
|
+
"type": "integer",
|
|
790
|
+
"primaryKey": false,
|
|
791
|
+
"notNull": false
|
|
792
|
+
},
|
|
793
|
+
"log_outcome": {
|
|
794
|
+
"name": "log_outcome",
|
|
795
|
+
"type": "text",
|
|
796
|
+
"primaryKey": false,
|
|
797
|
+
"notNull": false
|
|
798
|
+
},
|
|
799
|
+
"gate_result": {
|
|
800
|
+
"name": "gate_result",
|
|
801
|
+
"type": "jsonb",
|
|
802
|
+
"primaryKey": false,
|
|
803
|
+
"notNull": false
|
|
804
|
+
},
|
|
805
|
+
"restart_feedback": {
|
|
806
|
+
"name": "restart_feedback",
|
|
807
|
+
"type": "text",
|
|
808
|
+
"primaryKey": false,
|
|
809
|
+
"notNull": false
|
|
810
|
+
},
|
|
811
|
+
"started_at": {
|
|
812
|
+
"name": "started_at",
|
|
813
|
+
"type": "timestamp with time zone",
|
|
814
|
+
"primaryKey": false,
|
|
815
|
+
"notNull": true,
|
|
816
|
+
"default": "now()"
|
|
817
|
+
},
|
|
818
|
+
"finished_at": {
|
|
819
|
+
"name": "finished_at",
|
|
820
|
+
"type": "timestamp with time zone",
|
|
821
|
+
"primaryKey": false,
|
|
822
|
+
"notNull": false
|
|
823
|
+
},
|
|
824
|
+
"created_at": {
|
|
825
|
+
"name": "created_at",
|
|
826
|
+
"type": "timestamp with time zone",
|
|
827
|
+
"primaryKey": false,
|
|
828
|
+
"notNull": true,
|
|
829
|
+
"default": "now()"
|
|
830
|
+
}
|
|
831
|
+
},
|
|
832
|
+
"indexes": {},
|
|
833
|
+
"foreignKeys": {
|
|
834
|
+
"workflows_step_attempts_step_id_workflows_steps_id_fk": {
|
|
835
|
+
"name": "workflows_step_attempts_step_id_workflows_steps_id_fk",
|
|
836
|
+
"tableFrom": "workflows_step_attempts",
|
|
837
|
+
"tableTo": "workflows_steps",
|
|
838
|
+
"columnsFrom": ["step_id"],
|
|
839
|
+
"columnsTo": ["id"],
|
|
840
|
+
"onDelete": "cascade",
|
|
841
|
+
"onUpdate": "no action"
|
|
842
|
+
},
|
|
843
|
+
"workflows_step_attempts_step_id_job_execution_id_workflows_steps_fk": {
|
|
844
|
+
"name": "workflows_step_attempts_step_id_job_execution_id_workflows_steps_fk",
|
|
845
|
+
"tableFrom": "workflows_step_attempts",
|
|
846
|
+
"tableTo": "workflows_steps",
|
|
847
|
+
"columnsFrom": ["step_id", "job_execution_id"],
|
|
848
|
+
"columnsTo": ["id", "job_execution_id"],
|
|
849
|
+
"onDelete": "cascade",
|
|
850
|
+
"onUpdate": "no action"
|
|
851
|
+
}
|
|
852
|
+
},
|
|
853
|
+
"compositePrimaryKeys": {},
|
|
854
|
+
"uniqueConstraints": {
|
|
855
|
+
"workflows_step_attempts_step_id_attempt_uq": {
|
|
856
|
+
"name": "workflows_step_attempts_step_id_attempt_uq",
|
|
857
|
+
"nullsNotDistinct": false,
|
|
858
|
+
"columns": ["step_id", "attempt"]
|
|
859
|
+
},
|
|
860
|
+
"workflows_step_attempts_job_execution_id_execution_order_uq": {
|
|
861
|
+
"name": "workflows_step_attempts_job_execution_id_execution_order_uq",
|
|
862
|
+
"nullsNotDistinct": false,
|
|
863
|
+
"columns": ["job_execution_id", "execution_order"]
|
|
864
|
+
}
|
|
865
|
+
},
|
|
866
|
+
"policies": {},
|
|
867
|
+
"checkConstraints": {
|
|
868
|
+
"workflows_step_attempts_attempt_positive_ck": {
|
|
869
|
+
"name": "workflows_step_attempts_attempt_positive_ck",
|
|
870
|
+
"value": "\"workflows_step_attempts\".\"attempt\" > 0"
|
|
871
|
+
},
|
|
872
|
+
"workflows_step_attempts_execution_order_positive_ck": {
|
|
873
|
+
"name": "workflows_step_attempts_execution_order_positive_ck",
|
|
874
|
+
"value": "\"workflows_step_attempts\".\"execution_order\" > 0"
|
|
875
|
+
},
|
|
876
|
+
"workflows_step_attempts_status_dispatched_ck": {
|
|
877
|
+
"name": "workflows_step_attempts_status_dispatched_ck",
|
|
878
|
+
"value": "\"workflows_step_attempts\".\"status\" NOT IN ('pending', 'skipped')"
|
|
879
|
+
},
|
|
880
|
+
"workflows_step_attempts_log_outcome_ck": {
|
|
881
|
+
"name": "workflows_step_attempts_log_outcome_ck",
|
|
882
|
+
"value": "\"workflows_step_attempts\".\"log_outcome\" IS NULL OR \"workflows_step_attempts\".\"log_outcome\" IN ('drained', 'abandoned')"
|
|
883
|
+
}
|
|
884
|
+
},
|
|
885
|
+
"isRLSEnabled": false
|
|
886
|
+
},
|
|
887
|
+
"public.workflows_steps": {
|
|
888
|
+
"name": "workflows_steps",
|
|
889
|
+
"schema": "",
|
|
890
|
+
"columns": {
|
|
891
|
+
"id": {
|
|
892
|
+
"name": "id",
|
|
893
|
+
"type": "uuid",
|
|
894
|
+
"primaryKey": true,
|
|
895
|
+
"notNull": true,
|
|
896
|
+
"default": "uuidv7()"
|
|
897
|
+
},
|
|
898
|
+
"job_execution_id": {
|
|
899
|
+
"name": "job_execution_id",
|
|
900
|
+
"type": "uuid",
|
|
901
|
+
"primaryKey": false,
|
|
902
|
+
"notNull": true
|
|
903
|
+
},
|
|
904
|
+
"key": {
|
|
905
|
+
"name": "key",
|
|
906
|
+
"type": "text",
|
|
907
|
+
"primaryKey": false,
|
|
908
|
+
"notNull": false
|
|
909
|
+
},
|
|
910
|
+
"name": {
|
|
911
|
+
"name": "name",
|
|
912
|
+
"type": "text",
|
|
913
|
+
"primaryKey": false,
|
|
914
|
+
"notNull": true
|
|
915
|
+
},
|
|
916
|
+
"source_location": {
|
|
917
|
+
"name": "source_location",
|
|
918
|
+
"type": "jsonb",
|
|
919
|
+
"primaryKey": false,
|
|
920
|
+
"notNull": false
|
|
921
|
+
},
|
|
922
|
+
"status": {
|
|
923
|
+
"name": "status",
|
|
924
|
+
"type": "workflows_step_status",
|
|
925
|
+
"typeSchema": "public",
|
|
926
|
+
"primaryKey": false,
|
|
927
|
+
"notNull": true,
|
|
928
|
+
"default": "'pending'"
|
|
929
|
+
},
|
|
930
|
+
"status_reason": {
|
|
931
|
+
"name": "status_reason",
|
|
932
|
+
"type": "workflows_step_status_reason",
|
|
933
|
+
"typeSchema": "public",
|
|
934
|
+
"primaryKey": false,
|
|
935
|
+
"notNull": false
|
|
936
|
+
},
|
|
937
|
+
"evaluation_trace": {
|
|
938
|
+
"name": "evaluation_trace",
|
|
939
|
+
"type": "jsonb",
|
|
940
|
+
"primaryKey": false,
|
|
941
|
+
"notNull": false
|
|
942
|
+
},
|
|
943
|
+
"type": {
|
|
944
|
+
"name": "type",
|
|
945
|
+
"type": "text",
|
|
946
|
+
"primaryKey": false,
|
|
947
|
+
"notNull": true
|
|
948
|
+
},
|
|
949
|
+
"config": {
|
|
950
|
+
"name": "config",
|
|
951
|
+
"type": "jsonb",
|
|
952
|
+
"primaryKey": false,
|
|
953
|
+
"notNull": true
|
|
954
|
+
},
|
|
955
|
+
"condition": {
|
|
956
|
+
"name": "condition",
|
|
957
|
+
"type": "jsonb",
|
|
958
|
+
"primaryKey": false,
|
|
959
|
+
"notNull": false
|
|
960
|
+
},
|
|
961
|
+
"config_plan": {
|
|
962
|
+
"name": "config_plan",
|
|
963
|
+
"type": "jsonb",
|
|
964
|
+
"primaryKey": false,
|
|
965
|
+
"notNull": false
|
|
966
|
+
},
|
|
967
|
+
"authored_config": {
|
|
968
|
+
"name": "authored_config",
|
|
969
|
+
"type": "jsonb",
|
|
970
|
+
"primaryKey": false,
|
|
971
|
+
"notNull": false
|
|
972
|
+
},
|
|
973
|
+
"error": {
|
|
974
|
+
"name": "error",
|
|
975
|
+
"type": "jsonb",
|
|
976
|
+
"primaryKey": false,
|
|
977
|
+
"notNull": false
|
|
978
|
+
},
|
|
979
|
+
"position": {
|
|
980
|
+
"name": "position",
|
|
981
|
+
"type": "integer",
|
|
982
|
+
"primaryKey": false,
|
|
983
|
+
"notNull": true
|
|
984
|
+
},
|
|
985
|
+
"version": {
|
|
986
|
+
"name": "version",
|
|
987
|
+
"type": "integer",
|
|
988
|
+
"primaryKey": false,
|
|
989
|
+
"notNull": true,
|
|
990
|
+
"default": 1
|
|
991
|
+
},
|
|
992
|
+
"current_attempt": {
|
|
993
|
+
"name": "current_attempt",
|
|
994
|
+
"type": "integer",
|
|
995
|
+
"primaryKey": false,
|
|
996
|
+
"notNull": true,
|
|
997
|
+
"default": 1
|
|
998
|
+
},
|
|
999
|
+
"created_at": {
|
|
1000
|
+
"name": "created_at",
|
|
1001
|
+
"type": "timestamp with time zone",
|
|
1002
|
+
"primaryKey": false,
|
|
1003
|
+
"notNull": true,
|
|
1004
|
+
"default": "now()"
|
|
1005
|
+
},
|
|
1006
|
+
"updated_at": {
|
|
1007
|
+
"name": "updated_at",
|
|
1008
|
+
"type": "timestamp with time zone",
|
|
1009
|
+
"primaryKey": false,
|
|
1010
|
+
"notNull": true,
|
|
1011
|
+
"default": "now()"
|
|
1012
|
+
}
|
|
1013
|
+
},
|
|
1014
|
+
"indexes": {
|
|
1015
|
+
"workflows_steps_job_execution_id_idx": {
|
|
1016
|
+
"name": "workflows_steps_job_execution_id_idx",
|
|
1017
|
+
"columns": [
|
|
1018
|
+
{
|
|
1019
|
+
"expression": "job_execution_id",
|
|
1020
|
+
"isExpression": false,
|
|
1021
|
+
"asc": true,
|
|
1022
|
+
"nulls": "last"
|
|
1023
|
+
}
|
|
1024
|
+
],
|
|
1025
|
+
"isUnique": false,
|
|
1026
|
+
"concurrently": false,
|
|
1027
|
+
"method": "btree",
|
|
1028
|
+
"with": {}
|
|
1029
|
+
},
|
|
1030
|
+
"workflows_steps_id_job_execution_id_uq": {
|
|
1031
|
+
"name": "workflows_steps_id_job_execution_id_uq",
|
|
1032
|
+
"columns": [
|
|
1033
|
+
{
|
|
1034
|
+
"expression": "id",
|
|
1035
|
+
"isExpression": false,
|
|
1036
|
+
"asc": true,
|
|
1037
|
+
"nulls": "last"
|
|
1038
|
+
},
|
|
1039
|
+
{
|
|
1040
|
+
"expression": "job_execution_id",
|
|
1041
|
+
"isExpression": false,
|
|
1042
|
+
"asc": true,
|
|
1043
|
+
"nulls": "last"
|
|
1044
|
+
}
|
|
1045
|
+
],
|
|
1046
|
+
"isUnique": true,
|
|
1047
|
+
"concurrently": false,
|
|
1048
|
+
"method": "btree",
|
|
1049
|
+
"with": {}
|
|
1050
|
+
}
|
|
1051
|
+
},
|
|
1052
|
+
"foreignKeys": {
|
|
1053
|
+
"workflows_steps_job_execution_id_workflows_job_executions_id_fk": {
|
|
1054
|
+
"name": "workflows_steps_job_execution_id_workflows_job_executions_id_fk",
|
|
1055
|
+
"tableFrom": "workflows_steps",
|
|
1056
|
+
"tableTo": "workflows_job_executions",
|
|
1057
|
+
"columnsFrom": ["job_execution_id"],
|
|
1058
|
+
"columnsTo": ["id"],
|
|
1059
|
+
"onDelete": "cascade",
|
|
1060
|
+
"onUpdate": "no action"
|
|
1061
|
+
}
|
|
1062
|
+
},
|
|
1063
|
+
"compositePrimaryKeys": {},
|
|
1064
|
+
"uniqueConstraints": {},
|
|
1065
|
+
"policies": {},
|
|
1066
|
+
"checkConstraints": {
|
|
1067
|
+
"workflows_steps_current_attempt_positive_ck": {
|
|
1068
|
+
"name": "workflows_steps_current_attempt_positive_ck",
|
|
1069
|
+
"value": "\"workflows_steps\".\"current_attempt\" > 0"
|
|
1070
|
+
}
|
|
1071
|
+
},
|
|
1072
|
+
"isRLSEnabled": false
|
|
1073
|
+
},
|
|
1074
|
+
"public.workflows_workflow_run_attempts": {
|
|
1075
|
+
"name": "workflows_workflow_run_attempts",
|
|
1076
|
+
"schema": "",
|
|
1077
|
+
"columns": {
|
|
1078
|
+
"id": {
|
|
1079
|
+
"name": "id",
|
|
1080
|
+
"type": "uuid",
|
|
1081
|
+
"primaryKey": true,
|
|
1082
|
+
"notNull": true,
|
|
1083
|
+
"default": "uuidv7()"
|
|
1084
|
+
},
|
|
1085
|
+
"workflow_run_id": {
|
|
1086
|
+
"name": "workflow_run_id",
|
|
1087
|
+
"type": "uuid",
|
|
1088
|
+
"primaryKey": false,
|
|
1089
|
+
"notNull": true
|
|
1090
|
+
},
|
|
1091
|
+
"attempt": {
|
|
1092
|
+
"name": "attempt",
|
|
1093
|
+
"type": "integer",
|
|
1094
|
+
"primaryKey": false,
|
|
1095
|
+
"notNull": true
|
|
1096
|
+
},
|
|
1097
|
+
"status": {
|
|
1098
|
+
"name": "status",
|
|
1099
|
+
"type": "workflows_run_status",
|
|
1100
|
+
"typeSchema": "public",
|
|
1101
|
+
"primaryKey": false,
|
|
1102
|
+
"notNull": true,
|
|
1103
|
+
"default": "'pending'"
|
|
1104
|
+
},
|
|
1105
|
+
"rerun_mode": {
|
|
1106
|
+
"name": "rerun_mode",
|
|
1107
|
+
"type": "workflows_rerun_mode",
|
|
1108
|
+
"typeSchema": "public",
|
|
1109
|
+
"primaryKey": false,
|
|
1110
|
+
"notNull": false
|
|
1111
|
+
},
|
|
1112
|
+
"rerun_by_user_id": {
|
|
1113
|
+
"name": "rerun_by_user_id",
|
|
1114
|
+
"type": "uuid",
|
|
1115
|
+
"primaryKey": false,
|
|
1116
|
+
"notNull": false
|
|
1117
|
+
},
|
|
1118
|
+
"model": {
|
|
1119
|
+
"name": "model",
|
|
1120
|
+
"type": "jsonb",
|
|
1121
|
+
"primaryKey": false,
|
|
1122
|
+
"notNull": false
|
|
1123
|
+
},
|
|
1124
|
+
"version": {
|
|
1125
|
+
"name": "version",
|
|
1126
|
+
"type": "integer",
|
|
1127
|
+
"primaryKey": false,
|
|
1128
|
+
"notNull": true,
|
|
1129
|
+
"default": 1
|
|
1130
|
+
},
|
|
1131
|
+
"created_at": {
|
|
1132
|
+
"name": "created_at",
|
|
1133
|
+
"type": "timestamp with time zone",
|
|
1134
|
+
"primaryKey": false,
|
|
1135
|
+
"notNull": true,
|
|
1136
|
+
"default": "now()"
|
|
1137
|
+
},
|
|
1138
|
+
"updated_at": {
|
|
1139
|
+
"name": "updated_at",
|
|
1140
|
+
"type": "timestamp with time zone",
|
|
1141
|
+
"primaryKey": false,
|
|
1142
|
+
"notNull": true,
|
|
1143
|
+
"default": "now()"
|
|
1144
|
+
},
|
|
1145
|
+
"started_at": {
|
|
1146
|
+
"name": "started_at",
|
|
1147
|
+
"type": "timestamp with time zone",
|
|
1148
|
+
"primaryKey": false,
|
|
1149
|
+
"notNull": false
|
|
1150
|
+
},
|
|
1151
|
+
"finished_at": {
|
|
1152
|
+
"name": "finished_at",
|
|
1153
|
+
"type": "timestamp with time zone",
|
|
1154
|
+
"primaryKey": false,
|
|
1155
|
+
"notNull": false
|
|
1156
|
+
}
|
|
1157
|
+
},
|
|
1158
|
+
"indexes": {
|
|
1159
|
+
"workflows_wra_workflow_run_attempt_unique": {
|
|
1160
|
+
"name": "workflows_wra_workflow_run_attempt_unique",
|
|
1161
|
+
"columns": [
|
|
1162
|
+
{
|
|
1163
|
+
"expression": "workflow_run_id",
|
|
1164
|
+
"isExpression": false,
|
|
1165
|
+
"asc": true,
|
|
1166
|
+
"nulls": "last"
|
|
1167
|
+
},
|
|
1168
|
+
{
|
|
1169
|
+
"expression": "attempt",
|
|
1170
|
+
"isExpression": false,
|
|
1171
|
+
"asc": true,
|
|
1172
|
+
"nulls": "last"
|
|
1173
|
+
}
|
|
1174
|
+
],
|
|
1175
|
+
"isUnique": true,
|
|
1176
|
+
"concurrently": false,
|
|
1177
|
+
"method": "btree",
|
|
1178
|
+
"with": {}
|
|
1179
|
+
},
|
|
1180
|
+
"workflows_wra_one_active_attempt_unique": {
|
|
1181
|
+
"name": "workflows_wra_one_active_attempt_unique",
|
|
1182
|
+
"columns": [
|
|
1183
|
+
{
|
|
1184
|
+
"expression": "workflow_run_id",
|
|
1185
|
+
"isExpression": false,
|
|
1186
|
+
"asc": true,
|
|
1187
|
+
"nulls": "last"
|
|
1188
|
+
}
|
|
1189
|
+
],
|
|
1190
|
+
"isUnique": true,
|
|
1191
|
+
"where": "\"workflows_workflow_run_attempts\".\"status\" in ('pending', 'running')",
|
|
1192
|
+
"concurrently": false,
|
|
1193
|
+
"method": "btree",
|
|
1194
|
+
"with": {}
|
|
1195
|
+
}
|
|
1196
|
+
},
|
|
1197
|
+
"foreignKeys": {
|
|
1198
|
+
"workflows_workflow_run_attempts_workflow_run_id_workflows_workflow_runs_id_fk": {
|
|
1199
|
+
"name": "workflows_workflow_run_attempts_workflow_run_id_workflows_workflow_runs_id_fk",
|
|
1200
|
+
"tableFrom": "workflows_workflow_run_attempts",
|
|
1201
|
+
"tableTo": "workflows_workflow_runs",
|
|
1202
|
+
"columnsFrom": ["workflow_run_id"],
|
|
1203
|
+
"columnsTo": ["id"],
|
|
1204
|
+
"onDelete": "cascade",
|
|
1205
|
+
"onUpdate": "no action"
|
|
1206
|
+
}
|
|
1207
|
+
},
|
|
1208
|
+
"compositePrimaryKeys": {},
|
|
1209
|
+
"uniqueConstraints": {},
|
|
1210
|
+
"policies": {},
|
|
1211
|
+
"checkConstraints": {
|
|
1212
|
+
"workflows_wra_attempt_positive_ck": {
|
|
1213
|
+
"name": "workflows_wra_attempt_positive_ck",
|
|
1214
|
+
"value": "\"workflows_workflow_run_attempts\".\"attempt\" > 0"
|
|
1215
|
+
}
|
|
1216
|
+
},
|
|
1217
|
+
"isRLSEnabled": false
|
|
1218
|
+
},
|
|
1219
|
+
"public.workflows_workflow_runs": {
|
|
1220
|
+
"name": "workflows_workflow_runs",
|
|
1221
|
+
"schema": "",
|
|
1222
|
+
"columns": {
|
|
1223
|
+
"id": {
|
|
1224
|
+
"name": "id",
|
|
1225
|
+
"type": "uuid",
|
|
1226
|
+
"primaryKey": true,
|
|
1227
|
+
"notNull": true,
|
|
1228
|
+
"default": "uuidv7()"
|
|
1229
|
+
},
|
|
1230
|
+
"workspace_id": {
|
|
1231
|
+
"name": "workspace_id",
|
|
1232
|
+
"type": "uuid",
|
|
1233
|
+
"primaryKey": false,
|
|
1234
|
+
"notNull": true
|
|
1235
|
+
},
|
|
1236
|
+
"project_id": {
|
|
1237
|
+
"name": "project_id",
|
|
1238
|
+
"type": "uuid",
|
|
1239
|
+
"primaryKey": false,
|
|
1240
|
+
"notNull": true
|
|
1241
|
+
},
|
|
1242
|
+
"definition_id": {
|
|
1243
|
+
"name": "definition_id",
|
|
1244
|
+
"type": "uuid",
|
|
1245
|
+
"primaryKey": false,
|
|
1246
|
+
"notNull": true
|
|
1247
|
+
},
|
|
1248
|
+
"name": {
|
|
1249
|
+
"name": "name",
|
|
1250
|
+
"type": "text",
|
|
1251
|
+
"primaryKey": false,
|
|
1252
|
+
"notNull": true
|
|
1253
|
+
},
|
|
1254
|
+
"status": {
|
|
1255
|
+
"name": "status",
|
|
1256
|
+
"type": "workflows_run_status",
|
|
1257
|
+
"typeSchema": "public",
|
|
1258
|
+
"primaryKey": false,
|
|
1259
|
+
"notNull": true,
|
|
1260
|
+
"default": "'pending'"
|
|
1261
|
+
},
|
|
1262
|
+
"current_attempt": {
|
|
1263
|
+
"name": "current_attempt",
|
|
1264
|
+
"type": "integer",
|
|
1265
|
+
"primaryKey": false,
|
|
1266
|
+
"notNull": true,
|
|
1267
|
+
"default": 1
|
|
1268
|
+
},
|
|
1269
|
+
"trigger_provider": {
|
|
1270
|
+
"name": "trigger_provider",
|
|
1271
|
+
"type": "text",
|
|
1272
|
+
"primaryKey": false,
|
|
1273
|
+
"notNull": false
|
|
1274
|
+
},
|
|
1275
|
+
"trigger_source": {
|
|
1276
|
+
"name": "trigger_source",
|
|
1277
|
+
"type": "text",
|
|
1278
|
+
"primaryKey": false,
|
|
1279
|
+
"notNull": true
|
|
1280
|
+
},
|
|
1281
|
+
"trigger_event": {
|
|
1282
|
+
"name": "trigger_event",
|
|
1283
|
+
"type": "text",
|
|
1284
|
+
"primaryKey": false,
|
|
1285
|
+
"notNull": true
|
|
1286
|
+
},
|
|
1287
|
+
"trigger_payload": {
|
|
1288
|
+
"name": "trigger_payload",
|
|
1289
|
+
"type": "jsonb",
|
|
1290
|
+
"primaryKey": false,
|
|
1291
|
+
"notNull": true
|
|
1292
|
+
},
|
|
1293
|
+
"inputs": {
|
|
1294
|
+
"name": "inputs",
|
|
1295
|
+
"type": "jsonb",
|
|
1296
|
+
"primaryKey": false,
|
|
1297
|
+
"notNull": false
|
|
1298
|
+
},
|
|
1299
|
+
"source_snapshot": {
|
|
1300
|
+
"name": "source_snapshot",
|
|
1301
|
+
"type": "jsonb",
|
|
1302
|
+
"primaryKey": false,
|
|
1303
|
+
"notNull": false
|
|
1304
|
+
},
|
|
1305
|
+
"trigger_idempotency_key": {
|
|
1306
|
+
"name": "trigger_idempotency_key",
|
|
1307
|
+
"type": "text",
|
|
1308
|
+
"primaryKey": false,
|
|
1309
|
+
"notNull": false
|
|
1310
|
+
},
|
|
1311
|
+
"timeout_ms": {
|
|
1312
|
+
"name": "timeout_ms",
|
|
1313
|
+
"type": "bigint",
|
|
1314
|
+
"primaryKey": false,
|
|
1315
|
+
"notNull": true,
|
|
1316
|
+
"default": 2592000000
|
|
1317
|
+
},
|
|
1318
|
+
"version": {
|
|
1319
|
+
"name": "version",
|
|
1320
|
+
"type": "integer",
|
|
1321
|
+
"primaryKey": false,
|
|
1322
|
+
"notNull": true,
|
|
1323
|
+
"default": 1
|
|
1324
|
+
},
|
|
1325
|
+
"created_at": {
|
|
1326
|
+
"name": "created_at",
|
|
1327
|
+
"type": "timestamp with time zone",
|
|
1328
|
+
"primaryKey": false,
|
|
1329
|
+
"notNull": true,
|
|
1330
|
+
"default": "now()"
|
|
1331
|
+
},
|
|
1332
|
+
"updated_at": {
|
|
1333
|
+
"name": "updated_at",
|
|
1334
|
+
"type": "timestamp with time zone",
|
|
1335
|
+
"primaryKey": false,
|
|
1336
|
+
"notNull": true,
|
|
1337
|
+
"default": "now()"
|
|
1338
|
+
},
|
|
1339
|
+
"started_at": {
|
|
1340
|
+
"name": "started_at",
|
|
1341
|
+
"type": "timestamp with time zone",
|
|
1342
|
+
"primaryKey": false,
|
|
1343
|
+
"notNull": false
|
|
1344
|
+
},
|
|
1345
|
+
"finished_at": {
|
|
1346
|
+
"name": "finished_at",
|
|
1347
|
+
"type": "timestamp with time zone",
|
|
1348
|
+
"primaryKey": false,
|
|
1349
|
+
"notNull": false
|
|
1350
|
+
}
|
|
1351
|
+
},
|
|
1352
|
+
"indexes": {
|
|
1353
|
+
"workflows_wr_trigger_idempotency_key_unique": {
|
|
1354
|
+
"name": "workflows_wr_trigger_idempotency_key_unique",
|
|
1355
|
+
"columns": [
|
|
1356
|
+
{
|
|
1357
|
+
"expression": "trigger_idempotency_key",
|
|
1358
|
+
"isExpression": false,
|
|
1359
|
+
"asc": true,
|
|
1360
|
+
"nulls": "last"
|
|
1361
|
+
}
|
|
1362
|
+
],
|
|
1363
|
+
"isUnique": true,
|
|
1364
|
+
"concurrently": false,
|
|
1365
|
+
"method": "btree",
|
|
1366
|
+
"with": {}
|
|
1367
|
+
},
|
|
1368
|
+
"workflows_wr_project_created_id_idx": {
|
|
1369
|
+
"name": "workflows_wr_project_created_id_idx",
|
|
1370
|
+
"columns": [
|
|
1371
|
+
{
|
|
1372
|
+
"expression": "project_id",
|
|
1373
|
+
"isExpression": false,
|
|
1374
|
+
"asc": true,
|
|
1375
|
+
"nulls": "last"
|
|
1376
|
+
},
|
|
1377
|
+
{
|
|
1378
|
+
"expression": "created_at",
|
|
1379
|
+
"isExpression": false,
|
|
1380
|
+
"asc": true,
|
|
1381
|
+
"nulls": "last"
|
|
1382
|
+
},
|
|
1383
|
+
{
|
|
1384
|
+
"expression": "id",
|
|
1385
|
+
"isExpression": false,
|
|
1386
|
+
"asc": true,
|
|
1387
|
+
"nulls": "last"
|
|
1388
|
+
}
|
|
1389
|
+
],
|
|
1390
|
+
"isUnique": false,
|
|
1391
|
+
"concurrently": false,
|
|
1392
|
+
"method": "btree",
|
|
1393
|
+
"with": {}
|
|
1394
|
+
},
|
|
1395
|
+
"workflows_wr_project_status_created_id_idx": {
|
|
1396
|
+
"name": "workflows_wr_project_status_created_id_idx",
|
|
1397
|
+
"columns": [
|
|
1398
|
+
{
|
|
1399
|
+
"expression": "project_id",
|
|
1400
|
+
"isExpression": false,
|
|
1401
|
+
"asc": true,
|
|
1402
|
+
"nulls": "last"
|
|
1403
|
+
},
|
|
1404
|
+
{
|
|
1405
|
+
"expression": "status",
|
|
1406
|
+
"isExpression": false,
|
|
1407
|
+
"asc": true,
|
|
1408
|
+
"nulls": "last"
|
|
1409
|
+
},
|
|
1410
|
+
{
|
|
1411
|
+
"expression": "created_at",
|
|
1412
|
+
"isExpression": false,
|
|
1413
|
+
"asc": true,
|
|
1414
|
+
"nulls": "last"
|
|
1415
|
+
},
|
|
1416
|
+
{
|
|
1417
|
+
"expression": "id",
|
|
1418
|
+
"isExpression": false,
|
|
1419
|
+
"asc": true,
|
|
1420
|
+
"nulls": "last"
|
|
1421
|
+
}
|
|
1422
|
+
],
|
|
1423
|
+
"isUnique": false,
|
|
1424
|
+
"concurrently": false,
|
|
1425
|
+
"method": "btree",
|
|
1426
|
+
"with": {}
|
|
1427
|
+
},
|
|
1428
|
+
"workflows_wr_project_definition_created_id_idx": {
|
|
1429
|
+
"name": "workflows_wr_project_definition_created_id_idx",
|
|
1430
|
+
"columns": [
|
|
1431
|
+
{
|
|
1432
|
+
"expression": "project_id",
|
|
1433
|
+
"isExpression": false,
|
|
1434
|
+
"asc": true,
|
|
1435
|
+
"nulls": "last"
|
|
1436
|
+
},
|
|
1437
|
+
{
|
|
1438
|
+
"expression": "definition_id",
|
|
1439
|
+
"isExpression": false,
|
|
1440
|
+
"asc": true,
|
|
1441
|
+
"nulls": "last"
|
|
1442
|
+
},
|
|
1443
|
+
{
|
|
1444
|
+
"expression": "created_at",
|
|
1445
|
+
"isExpression": false,
|
|
1446
|
+
"asc": true,
|
|
1447
|
+
"nulls": "last"
|
|
1448
|
+
},
|
|
1449
|
+
{
|
|
1450
|
+
"expression": "id",
|
|
1451
|
+
"isExpression": false,
|
|
1452
|
+
"asc": true,
|
|
1453
|
+
"nulls": "last"
|
|
1454
|
+
}
|
|
1455
|
+
],
|
|
1456
|
+
"isUnique": false,
|
|
1457
|
+
"concurrently": false,
|
|
1458
|
+
"method": "btree",
|
|
1459
|
+
"with": {}
|
|
1460
|
+
},
|
|
1461
|
+
"workflows_wr_project_trigger_created_id_idx": {
|
|
1462
|
+
"name": "workflows_wr_project_trigger_created_id_idx",
|
|
1463
|
+
"columns": [
|
|
1464
|
+
{
|
|
1465
|
+
"expression": "project_id",
|
|
1466
|
+
"isExpression": false,
|
|
1467
|
+
"asc": true,
|
|
1468
|
+
"nulls": "last"
|
|
1469
|
+
},
|
|
1470
|
+
{
|
|
1471
|
+
"expression": "trigger_source",
|
|
1472
|
+
"isExpression": false,
|
|
1473
|
+
"asc": true,
|
|
1474
|
+
"nulls": "last"
|
|
1475
|
+
},
|
|
1476
|
+
{
|
|
1477
|
+
"expression": "created_at",
|
|
1478
|
+
"isExpression": false,
|
|
1479
|
+
"asc": true,
|
|
1480
|
+
"nulls": "last"
|
|
1481
|
+
},
|
|
1482
|
+
{
|
|
1483
|
+
"expression": "id",
|
|
1484
|
+
"isExpression": false,
|
|
1485
|
+
"asc": true,
|
|
1486
|
+
"nulls": "last"
|
|
1487
|
+
}
|
|
1488
|
+
],
|
|
1489
|
+
"isUnique": false,
|
|
1490
|
+
"concurrently": false,
|
|
1491
|
+
"method": "btree",
|
|
1492
|
+
"with": {}
|
|
1493
|
+
},
|
|
1494
|
+
"workflows_wr_running_idx": {
|
|
1495
|
+
"name": "workflows_wr_running_idx",
|
|
1496
|
+
"columns": [
|
|
1497
|
+
{
|
|
1498
|
+
"expression": "status",
|
|
1499
|
+
"isExpression": false,
|
|
1500
|
+
"asc": true,
|
|
1501
|
+
"nulls": "last"
|
|
1502
|
+
}
|
|
1503
|
+
],
|
|
1504
|
+
"isUnique": false,
|
|
1505
|
+
"where": "\"workflows_workflow_runs\".\"status\" = 'running'",
|
|
1506
|
+
"concurrently": false,
|
|
1507
|
+
"method": "btree",
|
|
1508
|
+
"with": {}
|
|
1509
|
+
}
|
|
1510
|
+
},
|
|
1511
|
+
"foreignKeys": {},
|
|
1512
|
+
"compositePrimaryKeys": {},
|
|
1513
|
+
"uniqueConstraints": {},
|
|
1514
|
+
"policies": {},
|
|
1515
|
+
"checkConstraints": {
|
|
1516
|
+
"workflows_wr_current_attempt_positive_ck": {
|
|
1517
|
+
"name": "workflows_wr_current_attempt_positive_ck",
|
|
1518
|
+
"value": "\"workflows_workflow_runs\".\"current_attempt\" > 0"
|
|
1519
|
+
}
|
|
1520
|
+
},
|
|
1521
|
+
"isRLSEnabled": false
|
|
1522
|
+
}
|
|
1523
|
+
},
|
|
1524
|
+
"enums": {
|
|
1525
|
+
"public.workflows_job_execution_status": {
|
|
1526
|
+
"name": "workflows_job_execution_status",
|
|
1527
|
+
"schema": "public",
|
|
1528
|
+
"values": ["pending", "running", "succeeded", "failed", "cancelled"]
|
|
1529
|
+
},
|
|
1530
|
+
"public.workflows_job_listener_event_disposition": {
|
|
1531
|
+
"name": "workflows_job_listener_event_disposition",
|
|
1532
|
+
"schema": "public",
|
|
1533
|
+
"values": ["fire", "resolve"]
|
|
1534
|
+
},
|
|
1535
|
+
"public.workflows_job_mode": {
|
|
1536
|
+
"name": "workflows_job_mode",
|
|
1537
|
+
"schema": "public",
|
|
1538
|
+
"values": ["one_shot", "listening"]
|
|
1539
|
+
},
|
|
1540
|
+
"public.workflows_checkout_contents": {
|
|
1541
|
+
"name": "workflows_checkout_contents",
|
|
1542
|
+
"schema": "public",
|
|
1543
|
+
"values": ["read", "write"]
|
|
1544
|
+
},
|
|
1545
|
+
"public.workflows_job_on_resolve": {
|
|
1546
|
+
"name": "workflows_job_on_resolve",
|
|
1547
|
+
"schema": "public",
|
|
1548
|
+
"values": ["finish", "cancel"]
|
|
1549
|
+
},
|
|
1550
|
+
"public.workflows_job_status": {
|
|
1551
|
+
"name": "workflows_job_status",
|
|
1552
|
+
"schema": "public",
|
|
1553
|
+
"values": ["pending", "running", "succeeded", "failed", "cancelled", "skipped"]
|
|
1554
|
+
},
|
|
1555
|
+
"public.workflows_job_status_reason": {
|
|
1556
|
+
"name": "workflows_job_status_reason",
|
|
1557
|
+
"schema": "public",
|
|
1558
|
+
"values": [
|
|
1559
|
+
"dependency_not_completed",
|
|
1560
|
+
"condition_false",
|
|
1561
|
+
"default_gate_rejected",
|
|
1562
|
+
"condition_rejected",
|
|
1563
|
+
"condition_errored",
|
|
1564
|
+
"user_cancelled",
|
|
1565
|
+
"run_cancelled",
|
|
1566
|
+
"timed_out",
|
|
1567
|
+
"runner_lost",
|
|
1568
|
+
"step_failed",
|
|
1569
|
+
"unknown"
|
|
1570
|
+
]
|
|
1571
|
+
},
|
|
1572
|
+
"public.workflows_listener_status": {
|
|
1573
|
+
"name": "workflows_listener_status",
|
|
1574
|
+
"schema": "public",
|
|
1575
|
+
"values": ["inactive", "listening", "resolved"]
|
|
1576
|
+
},
|
|
1577
|
+
"public.workflows_resolution_reason": {
|
|
1578
|
+
"name": "workflows_resolution_reason",
|
|
1579
|
+
"schema": "public",
|
|
1580
|
+
"values": ["until", "timeout", "max_executions", "cancelled"]
|
|
1581
|
+
},
|
|
1582
|
+
"public.workflows_step_status": {
|
|
1583
|
+
"name": "workflows_step_status",
|
|
1584
|
+
"schema": "public",
|
|
1585
|
+
"values": ["pending", "running", "succeeded", "failed", "cancelled", "skipped"]
|
|
1586
|
+
},
|
|
1587
|
+
"public.workflows_step_status_reason": {
|
|
1588
|
+
"name": "workflows_step_status_reason",
|
|
1589
|
+
"schema": "public",
|
|
1590
|
+
"values": ["default_gate_rejected", "condition_rejected", "condition_errored"]
|
|
1591
|
+
},
|
|
1592
|
+
"public.workflows_rerun_mode": {
|
|
1593
|
+
"name": "workflows_rerun_mode",
|
|
1594
|
+
"schema": "public",
|
|
1595
|
+
"values": ["all", "failed"]
|
|
1596
|
+
},
|
|
1597
|
+
"public.workflows_run_status": {
|
|
1598
|
+
"name": "workflows_run_status",
|
|
1599
|
+
"schema": "public",
|
|
1600
|
+
"values": ["pending", "running", "succeeded", "failed", "cancelled"]
|
|
1601
|
+
}
|
|
1602
|
+
},
|
|
1603
|
+
"schemas": {},
|
|
1604
|
+
"sequences": {},
|
|
1605
|
+
"roles": {},
|
|
1606
|
+
"policies": {},
|
|
1607
|
+
"views": {},
|
|
1608
|
+
"_meta": {
|
|
1609
|
+
"columns": {},
|
|
1610
|
+
"schemas": {},
|
|
1611
|
+
"tables": {}
|
|
1612
|
+
}
|
|
1613
|
+
}
|