Skip to content

Conversation

@Ziemin
Copy link
Contributor

@Ziemin Ziemin commented Jun 16, 2025

Tracking issue

Why are the changes needed?

During local execution workflows using multiple Ray tasks fail, because every task attempts to create a fresh ray instance. This PR simply sets turns on the flag to ignore ray re-initialization errors.

What changes were proposed in this pull request?

Ray init params contain ignore_reinit_error set to True when executing locally.

How was this patch tested?

Tested this code version both locally and on flyte cluster with workflows using multiple ray tasks.

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

Docs link

Summary by Bito

This pull request enhances the Ray initialization process by adding a parameter to ignore reinitialization errors during local workflow execution. This improvement increases the reliability and stability of workflows that involve multiple Ray tasks.

@welcome
Copy link

welcome bot commented Jun 16, 2025

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).

@Sovietaced
Copy link
Member

@Ziemin Can you please sign off your commits

@Ziemin Ziemin force-pushed the ray-local-execution-ignore-reinit branch from ad91a0c to 217e9b4 Compare June 16, 2025 14:55
@codecov
Copy link

codecov bot commented Jun 16, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 52.52%. Comparing base (3c6b61d) to head (217e9b4).
Report is 3 commits behind head on master.

❗ There is a different number of reports uploaded between BASE (3c6b61d) and HEAD (217e9b4). Click for more details.

HEAD has 40 uploads less than BASE
Flag BASE (3c6b61d) HEAD (217e9b4)
41 1
Additional details and impacted files
@@             Coverage Diff             @@
##           master    #3277       +/-   ##
===========================================
- Coverage   83.35%   52.52%   -30.84%     
===========================================
  Files         347      215      -132     
  Lines       28791    22520     -6271     
  Branches     2960     2961        +1     
===========================================
- Hits        23999    11828    -12171     
- Misses       3956     9974     +6018     
+ Partials      836      718      -118     

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@fiedlerNr9 fiedlerNr9 merged commit 62672bd into flyteorg:master Jun 22, 2025
225 of 230 checks passed
@welcome
Copy link

welcome bot commented Jun 22, 2025

Congrats on merging your first pull request! 🎉

Atharva1723 pushed a commit to Atharva1723/flytekit that referenced this pull request Oct 5, 2025
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.

4 participants