feat: add dag enqueue action
Merged
YO
7mo ago+1047+1047+0123456789012345678901234567890123456789-36-36-01234567890123456789
Summary
Add asynchronous child DAG enqueue support with action: dag.enqueue.
Changes
- Add
dag.enqueueaction normalization anddag_enqueueexecutor 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/dagmake bingit diff --check
Summary by CodeRabbit
-
New Features
- Added
dag.enqueueaction to enqueue child DAG runs asynchronously with optional queue configuration and parameter overrides. - Enhanced support for parallel execution of enqueued child DAG runs.
- Added
-
Improvements
- Improved sub-DAG run resolution and tracking in API endpoints for better visibility across parent and child DAG runs.