Skip to content

Commit

Permalink
feat(agent/grpc): add ungraceful shutdown
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Moreira de Jesus <[email protected]>
  • Loading branch information
mmoreiradj committed Apr 25, 2024
1 parent 96af7c9 commit c2b7c34
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/agent/src/workload/service.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use std::{process::exit, sync::Arc};
use std::{process, sync::Arc};

use crate::agent::{self, ExecuteRequest, ExecuteResponse, SignalRequest};

Expand Down Expand Up @@ -62,6 +62,6 @@ impl WorkloadRunner for WorkloadRunnerService {
}

async fn signal(&self, _: Request<SignalRequest>) -> Result<()> {
unreachable!();
process::exit(0)
}
}

0 comments on commit c2b7c34

Please sign in to comment.