feat: add dag enqueue action

Merged
YO
7mo ago
+1047-36

Summary

Add asynchronous child DAG enqueue support with action: dag.enqueue.

Changes

  • Add dag.enqueue action normalization and dag_enqueue executor support.
  • Persist queued child DAG runs with sub-DAG trigger metadata, resolved params, logs, artifacts, and queue selection.
  • Wire queue and DAG-run stores into runtime execution context for executors that create queued runs.
  • Update sub-DAG API lookup paths so asynchronously queued child DAG runs remain visible from parent DAG run details.
  • Add parser, schema, runtime, queue-processing, and API coverage for enqueue behavior.

Related Issues

N/A

Checklist

  • Code follows the project style guidelines
  • Self-review of the code has been performed
  • Tests have been added or updated as needed
  • Changes have been tested locally

Validation

  • go test -count=1 ./internal/core ./internal/core/spec ./internal/service/frontend/api/v1 ./internal/cmd ./internal/service/scheduler ./internal/runtime/agent ./internal/runtime/builtin/dag
  • make bin
  • git diff --check

Summary by CodeRabbit

  • New Features

    • Added dag.enqueue action to enqueue child DAG runs asynchronously with optional queue configuration and parameter overrides.
    • Enhanced support for parallel execution of enqueued child DAG runs.
  • Improvements

    • Improved sub-DAG run resolution and tracking in API endpoints for better visibility across parent and child DAG runs.

Review Change Stack