feat(core): add subflow() Pebble function#16653
Draft
brian-mulier-p wants to merge 2 commits into
Draft
Conversation
Synchronously runs a subflow and returns its terminal Execution, so
.outputs.<id> reads the subflow's flow-level outputs — mainly to populate
a SELECT/MULTISELECT input's values at execute-form render time.
- new SubflowFunction (ACL-aware resolution, depth-cap guard, SUCCESS/WARNING gate)
- WebhookService.runAndWait(Execution, Flow, Duration) reusing the queue glue
- ExecutionKind.SUBFLOW_FUNCTION (auto-hidden from lists via NORMAL_KIND_CONDITION)
- config kestra.pebble.subflow-function.{completion-timeout=PT1M,max-depth=3}
…uted When an input's values are rendered dynamically (e.g. via the subflow() function), surface that work on the execute form instead of a frozen UI: - per-input loading spinner on dynamic SELECT/MULTISELECT while values compute; on the initial fetch (no value yet) the input is also disabled with a "computing" placeholder, later recomputations only spin and stay usable - apply input defaults immediately at init, without waiting for the validate call - discard stale validate responses so a value the user just picked is never reset - add SUBFLOW_FUNCTION to the executions Kind filter (+ translations)
Contributor
📄 OpenAPI Spec ChangesSpec generated with EE branch 19400a19401
> - SUBFLOW_FUNCTION🐋 Docker imagedocker run --pull=always --rm -it -p 8080:8080 --user=root -v /var/run/docker.sock:/var/run/docker.sock -v /tmp:/tmp ghcr.io/kestra-io/kestra-pr:16653 server local |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes kestra-io/kestra-ee#7850