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

refactor(click_types): skip serialization for default values #2418

Merged
merged 5 commits into from
May 15, 2024

Conversation

pingsutw
Copy link
Member

@pingsutw pingsutw commented May 15, 2024

Tracking issue

NA

Why are the changes needed?

Default workflow inputs are serialized twice in the flytekit

  1. lit = TypeEngine.to_literal(self._flyte_ctx, value, self._python_type, self._literal_type)
  2. default_lv = TypeEngine.to_literal(ctx, _default, python_type=interface.inputs[k], expected=v.type)

What changes were proposed in this pull request?

Skip serialization if the input matches the default value in the launch plan.

How was this patch tested?

pyflyte run & pyflyte run --remote ...

Setup process

Screenshots

Check all the applicable boxes

  • I updated the documentation accordingly.
  • All new and existing tests passed.
  • All commits are signed-off.

Related PRs

NA

Docs link

NA

pingsutw added 3 commits May 15, 2024 14:49
Signed-off-by: Kevin Su <[email protected]>
Signed-off-by: Kevin Su <[email protected]>
@pingsutw pingsutw marked this pull request as ready for review May 15, 2024 07:07
Signed-off-by: Kevin Su <[email protected]>
@pingsutw pingsutw merged commit 76fb7c3 into master May 15, 2024
45 of 46 checks passed
austin362667 pushed a commit to austin362667/flytekit that referenced this pull request May 21, 2024
austin362667 pushed a commit to austin362667/flytekit that referenced this pull request Jun 15, 2024
austin362667 pushed a commit to austin362667/flytekit that referenced this pull request Jun 15, 2024
fiedlerNr9 pushed a commit that referenced this pull request Jul 25, 2024
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.

2 participants