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

cli: wipe_ostree in spawn_blocking #779

Merged
merged 1 commit into from
Sep 9, 2024

Conversation

omertuc
Copy link
Contributor

@omertuc omertuc commented Sep 6, 2024

Solves #778

@omertuc omertuc force-pushed the spawn_blocking branch 2 times, most recently from efb0d36 to 215e099 Compare September 6, 2024 17:27
lib/src/cli.rs Outdated Show resolved Hide resolved
An async fn shouldn't block the thread, but write_deployments is a
blocking heavy filesystem operation. Using tokio::task::spawn_blocking
to avoid blocking async threads.

Solves containers#778

Signed-off-by: Omer Tuchfeld <omer@tuchfeld.dev>
@cgwalters cgwalters merged commit 1fd6c69 into containers:main Sep 9, 2024
31 of 34 checks passed
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.

2 participants