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

add one interactive thread for improved spot support #140

Merged
merged 2 commits into from
Feb 15, 2024
Merged

Conversation

samtkaplan
Copy link
Member

@samtkaplan samtkaplan commented Aug 28, 2023

When running with SPOT scale-sets, on each worker start a loop that watches for pre-empt (spot) events. Upon receiving an event, exit Julia. This work gets the mechanism put in place. Future PRs can work on adding the ability to run user-defined code before the exit.

update
This was super-ceded by #143 since we couldn't figure out how to get interactive threads working. But, this now works, but does require the user to explicitly run their parallel work-load in the default thread pool via the Threads.@threads macro.

@codecov-commenter
Copy link

codecov-commenter commented Aug 29, 2023

Codecov Report

Attention: 92 lines in your changes are missing coverage. Please review.

Comparison is base (3432d73) 46.56% compared to head (581bc30) 41.60%.

Files Patch % Lines
src/AzManagers.jl 13.97% 80 Missing ⚠️
test/runtests.jl 14.28% 12 Missing ⚠️

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #140      +/-   ##
==========================================
- Coverage   46.56%   41.60%   -4.97%     
==========================================
  Files           3        3              
  Lines        1748     1745       -3     
==========================================
- Hits          814      726      -88     
- Misses        934     1019      +85     

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

@samtkaplan samtkaplan force-pushed the spot branch 5 times, most recently from 8beb4b7 to f753629 Compare September 8, 2023 18:12
@samtkaplan samtkaplan marked this pull request as ready for review September 8, 2023 18:12
@samtkaplan samtkaplan marked this pull request as draft September 18, 2023 21:20
Add an interactive thread and a loop on that thread that checks for spot eviction.
@samtkaplan samtkaplan merged commit 3d21df3 into master Feb 15, 2024
1 of 3 checks passed
@samtkaplan samtkaplan deleted the spot branch February 15, 2024 18:28
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