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

Stop admin launcher copying shard key from parent workflow #5174

Conversation

Tom-Newton
Copy link
Contributor

Tracking issue

Closes: #5173

Why are the changes needed?

For more uniform distribution of workflows across fltyepropeller shards.

What changes were proposed in this pull request?

Specifically delete the shard-key label but copy all the other labels from parent to child as before.

How was this patch tested?

Added a unit test
I've been using it in production.

Setup process

Screenshots

Check all the applicable boxes

  • I updated the documentation accordingly - I don't think its applicable.
  • All new and existing tests passed
  • All commits are signed-off.

Related PRs

Docs link

Signed-off-by: Thomas Newton <[email protected]>
Signed-off-by: Thomas Newton <[email protected]>
Signed-off-by: Thomas Newton <[email protected]>
@Tom-Newton Tom-Newton force-pushed the tomnewton/admin_launcher_does_not_icopy_shard_key_from_parent/GH-5173 branch from ebee557 to 5d44e42 Compare April 3, 2024 10:28
@Tom-Newton Tom-Newton marked this pull request as ready for review April 3, 2024 10:30
@dosubot dosubot bot added size:S This PR changes 10-29 lines, ignoring generated files. enhancement New feature or request labels Apr 3, 2024
Copy link

codecov bot commented Apr 3, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 59.11%. Comparing base (dc1294e) to head (5d44e42).
Report is 5 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #5174   +/-   ##
=======================================
  Coverage   59.11%   59.11%           
=======================================
  Files         645      645           
  Lines       55574    55579    +5     
=======================================
+ Hits        32852    32857    +5     
  Misses      20129    20129           
  Partials     2593     2593           
Flag Coverage Δ
unittests 59.11% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Apr 4, 2024
@eapolinario eapolinario merged commit 37255a1 into flyteorg:master Apr 4, 2024
48 checks passed
Jeinhaus pushed a commit to Jeinhaus/flyte that referenced this pull request Apr 8, 2024
…5174)

* Remove shard key in admin-launcher

Signed-off-by: Thomas Newton <[email protected]>

* Don't mutate existing state

Signed-off-by: Thomas Newton <[email protected]>

* Don't mutate state

Signed-off-by: Thomas Newton <[email protected]>

* Add a test

Signed-off-by: Thomas Newton <[email protected]>

---------

Signed-off-by: Thomas Newton <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request lgtm This PR has been approved by a maintainer size:S This PR changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Core feature] Allow sub workflows created by admin-launcher to run on a different flytepropeller shard
2 participants