Kill on drop true
This commit is contained in:
@@ -14,7 +14,12 @@ impl Executor for EchoExecutor {
|
||||
"echo"
|
||||
}
|
||||
|
||||
async fn spawn(&self, pool: &sqlx::PgPool, task_id: Uuid, _worktree_path: &str) -> Result<Child, ExecutorError> {
|
||||
async fn spawn(
|
||||
&self,
|
||||
pool: &sqlx::PgPool,
|
||||
task_id: Uuid,
|
||||
_worktree_path: &str,
|
||||
) -> Result<Child, ExecutorError> {
|
||||
// Get the task to fetch its description
|
||||
let task = Task::find_by_id(pool, task_id)
|
||||
.await?
|
||||
@@ -27,6 +32,7 @@ impl Executor for EchoExecutor {
|
||||
);
|
||||
|
||||
let child = Command::new("echo")
|
||||
.kill_on_drop(true)
|
||||
.arg(&message)
|
||||
.spawn()
|
||||
.map_err(ExecutorError::SpawnFailed)?;
|
||||
|
||||
Reference in New Issue
Block a user