mirror of
https://github.com/moghtech/komodo.git
synced 2026-04-29 04:10:01 -05:00
execute container exec waits a bit for terminal to init before sending command
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
use std::sync::Arc;
|
||||
use std::{sync::Arc, time::Duration};
|
||||
|
||||
use anyhow::{Context, anyhow};
|
||||
use axum::http::StatusCode;
|
||||
@@ -212,6 +212,9 @@ impl Resolve<super::Args> for ExecuteContainerExec {
|
||||
.await
|
||||
.context("Failed to create terminal for container exec")?;
|
||||
|
||||
// Wait a bit for terminal to initialize
|
||||
tokio::time::sleep(Duration::from_millis(500)).await;
|
||||
|
||||
let stdout =
|
||||
setup_execute_command_on_terminal(&terminal, &command).await?;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user