-
Notifications
You must be signed in to change notification settings - Fork 20
implement fully async reaper #583
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
Conversation
| let contents = std::fs::read(PIVOT_OK2_SUCCESS_FILE).unwrap(); | ||
| assert_eq!(std::str::from_utf8(&contents).unwrap(), msg); | ||
|
|
||
| let enclave_info_url = |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NOTE: this was working by accident before, the timing "just worked" but if the pivot exited and the enclave exited (becuase it's set to not restart the pivot) this call would fail.
7df174d to
f0aacf7
Compare
emostov
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall looks good. Just one comment that looks out of place and I want to make some of the sleeps shorter but doesn't need to be this PR
Co-authored-by: Zeke Mostov <z.mostov@gmail.com>
emostov
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice - new changes look good!
Summary & Motivation (Problem vs. Solution)
Refactor qos_core
Reaperto use async tokio spawning directly without threads to lower unnecessary load.Also fixes a bunch of tests with forgotten
std::thread::sleepwhich shouldn't be used with tokio as it blocks the main task.How I Tested These Changes
Tested on preprod by deploying from this PR with a temporary mono PR.