Repository navigation
feat(idl): add RELATION_TYPE_FORK to RelationType - #8299
Closed
samhita-alla wants to merge 1 commit into
Closed
samhita-alla wants to merge 1 commit into
samhita-alla wants to merge 1 commit into
Conversation
A fork recovers a parent run with different code: the new run's root task differs from the parent's root task, for example a new task version built from local changes. Recording it as RELATION_TYPE_RECOVER makes it indistinguishable from a plain recovery, so clients label it as one. RELATION_TYPE_FORK = 6 lets the server record that provenance. Recovery semantics are the same as RELATION_TYPE_RECOVER, and readers that do not know the value keep treating it as an unknown relation type. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Samhita Alla <aallasamhita@gmail.com>
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.
Tracking issue
Related to unionai/cloud#19745, which uses this value.
Why are the changes needed?
A fork recovers a parent run with different code, such as a new task version built from local changes. Today it can only be recorded as a plain recovery, so clients label it as one.
What changes were proposed in this pull request?
RELATION_TYPE_FORK = 6toRelationType. It recovers the same way asRELATION_TYPE_RECOVERand only records provenance. Readers that don't know the value treat it as unknown, so the change is backward compatible.RelationType, so behavior doesn't change here.How was this patch tested?
buf lintandbuf formatpass, and the generated Go and Rust build.Labels
Check all the applicable boxes
Related PRs
flyte2submodule is pinned to a cherry-pick of this commit and should move to this PR's merge commit once it lands.🤖 Generated with Claude Code