Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

order dependencies when subsetting pipeline #4851

Merged
merged 1 commit into from
Sep 16, 2021
Merged

Conversation

alangenfeld
Copy link
Member

@alangenfeld alangenfeld commented Sep 16, 2021

resolves #4848

Test Plan

added repro test case base on issue

@vercel
Copy link

vercel bot commented Sep 16, 2021

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/elementl/dagster/EovtTSi8rmxCHokKQ4zv6nAQjAkV
✅ Preview: https://dagster-git-al-order-subset-elementl.vercel.app

@@ -627,7 +632,7 @@ def _get_pipeline_subset_def(
deps[_dep_key_of(solid)][input_handle.input_def.name] = DependencyDefinition(
solid=output_handle.solid.name, output=output_handle.output_def.name
)
if graph.dependency_structure.has_dynamic_fan_in_dep(input_handle):
elif graph.dependency_structure.has_dynamic_fan_in_dep(input_handle):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

these are equivalent because they're mutually exclusive conditions, right?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ya, an input can only have one type of dep

solids = list(map(graph.solid_named, solids_to_execute))
# go in topo order to ensure deps dict is ordered
solids = list(
filter(lambda solid: solid.name in solids_to_execute, graph.solids_in_topological_order)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why was this causing a grpc error?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it was throwing a check exception in the user code when building the subset pipeline since the dynamic output resolution alogrithm expects to process the dependencies in order

@alangenfeld alangenfeld merged commit e287ccd into master Sep 16, 2021
@alangenfeld alangenfeld deleted the al/order-subset branch September 16, 2021 18:39
OwenKephart pushed a commit that referenced this pull request Sep 16, 2021
resolves #4848

### Test Plan

added repro test case base on issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Running a pipeline with dynamic outputs with a solid selection results in gRPC Error
2 participants