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

Nested parallelization #5022

Merged
merged 8 commits into from
Mar 11, 2024
Merged

Conversation

pryce-turner
Copy link
Contributor

A lot of advanced users are curious about best practices when it comes to nesting and mixed parallelization. This PR adds a section under Advanced Composition showing a few examples and best practices.

This is just an unfinished draft but wanted to solicit early feedback.

Copy link

welcome bot commented Mar 7, 2024

Thank you for opening this pull request! 🙌

These tips will help get your PR across the finish line:

  • Most of the repos have a PR template; if not, fill it out to the best of your knowledge.
  • Sign off your commits (Reference: DCO Guide).

Copy link

codecov bot commented Mar 7, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 58.99%. Comparing base (aea794f) to head (0237f91).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #5022      +/-   ##
==========================================
- Coverage   59.00%   58.99%   -0.01%     
==========================================
  Files         645      645              
  Lines       55548    55548              
==========================================
- Hits        32775    32770       -5     
- Misses      20182    20187       +5     
  Partials     2591     2591              
Flag Coverage Δ
unittests 58.99% <ø> (-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.

Signed-off-by: pryce-turner <[email protected]>
Signed-off-by: pryce-turner <[email protected]>
neverett
neverett previously approved these changes Mar 9, 2024
Copy link
Contributor

@neverett neverett left a comment

Choose a reason for hiding this comment

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

This is very thorough and well-organized, thanks for adding it! I left suggestions, but went ahead and approved in case any of my suggested rephrasings were inaccurate -- I don't want to block merging this PR on factually incorrect suggestions.

@@ -0,0 +1,190 @@
---
Copy link
Contributor

Choose a reason for hiding this comment

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

I think you can remove this entire block of frontmatter -- the contents of the Python sections will render correctly without it.

@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Mar 9, 2024
Adding most suggestions with a few that need to be handled locally!

Co-authored-by: Nikki Everett <[email protected]>
Signed-off-by: pryce-turner <[email protected]>
@neverett neverett self-requested a review March 11, 2024 19:06
@pryce-turner pryce-turner marked this pull request as ready for review March 11, 2024 19:25
@pryce-turner pryce-turner requested a review from ppiegaze as a code owner March 11, 2024 19:25
@dosubot dosubot bot added size:L This PR changes 100-499 lines, ignoring generated files. documentation Improvements or additions to documentation labels Mar 11, 2024
@pryce-turner pryce-turner merged commit b0b5dc3 into master Mar 11, 2024
47 of 49 checks passed
@pryce-turner pryce-turner deleted the pryce-turner/nested-parallelization branch March 11, 2024 20:21
Copy link

welcome bot commented Mar 11, 2024

Congrats on merging your first pull request! 🎉

yubofredwang pushed a commit to yubofredwang/flyte that referenced this pull request Mar 26, 2024
* Nested parallelization first draft

Signed-off-by: pryce-turner <[email protected]>

* Added screenshots and considerations section

Signed-off-by: pryce-turner <[email protected]>

* Spelling

Signed-off-by: pryce-turner <[email protected]>

* toctree

Signed-off-by: pryce-turner <[email protected]>

* Apply suggestions from code review

Adding most suggestions with a few that need to be handled locally!

Co-authored-by: Nikki Everett <[email protected]>
Signed-off-by: pryce-turner <[email protected]>

* Merge

* Updated screenshot with annotation

Signed-off-by: pryce-turner <[email protected]>

---------

Signed-off-by: pryce-turner <[email protected]>
Signed-off-by: pryce-turner <[email protected]>
Co-authored-by: Nikki Everett <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation lgtm This PR has been approved by a maintainer size:L This PR changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants