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

Tasks inside ParallelFor receive the loop variable instead of other arguments #2943

Closed
Ark-kun opened this issue Jan 30, 2020 · 1 comment · Fixed by #3029
Closed

Tasks inside ParallelFor receive the loop variable instead of other arguments #2943

Ark-kun opened this issue Jan 30, 2020 · 1 comment · Fixed by #3029
Assignees
Labels
area/sdk/dsl/compiler kind/bug priority/p0 status/triaged Whether the issue has been explicitly triaged

Comments

@Ark-kun
Copy link
Contributor

Ark-kun commented Jan 30, 2020

One of our users has reported the following issue:

outside_task = op1()
items_gen_task = op2()

with dsl.ParallelFor(items_gen_task.outputs['Items']) as loop_item:
    inner_task = op3(param1=loop_item.a, param2=outside_task.outputs['Output'])

The issue is that op3 receives param2=loop_item.a instead of param2=outside_task.outputs['Output'].

@rmgogogo rmgogogo added the status/triaged Whether the issue has been explicitly triaged label Feb 3, 2020
@philippslang
Copy link

#2936

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/sdk/dsl/compiler kind/bug priority/p0 status/triaged Whether the issue has been explicitly triaged
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants