You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
An async fn shouldn't block the thread, but write_deployments is a totally blocking heavy filesystem operation. What we do in a few places is do heavy stuff like this inside a tokio::task::spawn_blocking.
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 <[email protected]>
An
async fn
shouldn't block the thread, butwrite_deployments
is a totally blocking heavy filesystem operation. What we do in a few places is do heavy stuff like this inside atokio::task::spawn_blocking
.Originally posted by @cgwalters in #777 (comment)
The text was updated successfully, but these errors were encountered: