Skip to content

Conversation

@Turnalek
Copy link
Contributor

@Turnalek Turnalek commented Sep 17, 2025

Summary & Motivation (Problem vs. Solution)

Refactor qos_core Reaper to use async tokio spawning directly without threads to lower unnecessary load.

Also fixes a bunch of tests with forgotten std::thread::sleep which 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.

@Turnalek Turnalek requested review from a team as code owners September 17, 2025 17:34
@Turnalek Turnalek closed this Sep 17, 2025
@Turnalek Turnalek reopened this Sep 17, 2025
@Turnalek Turnalek marked this pull request as draft September 17, 2025 17:35
@Turnalek Turnalek changed the title Ales/async reaper implement fully async reaper Sep 17, 2025
@Turnalek Turnalek marked this pull request as ready for review September 17, 2025 18:00
@Turnalek Turnalek requested review from emostov and r-n-o September 17, 2025 18:00
let contents = std::fs::read(PIVOT_OK2_SUCCESS_FILE).unwrap();
assert_eq!(std::str::from_utf8(&contents).unwrap(), msg);

let enclave_info_url =
Copy link
Contributor Author

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.

Copy link
Contributor

@emostov emostov left a 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

@Turnalek Turnalek requested a review from emostov September 18, 2025 15:59
Copy link
Contributor

@emostov emostov left a 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!

@r-n-o r-n-o merged commit 3b87be0 into main Sep 18, 2025
8 checks passed
@r-n-o r-n-o deleted the ales/async_reaper branch September 18, 2025 22: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