MCPcopy Create free account
hub / github.com/Dstack-TEE/dstack / perform_shutdown

Function perform_shutdown

supervisor/src/web_api.rs:88–96  ·  view source on GitHub ↗
(supervisor: &Supervisor, force: bool)

Source from the content-addressed store, hash-verified

86}
87
88async fn perform_shutdown(supervisor: &Supervisor, force: bool) -> Result<()> {
89 info!("Shutting down supervisor");
90 let result = supervisor.shutdown().await;
91 if result.is_ok() || force {
92 info!("Supervisor shutdown successfully");
93 std::process::exit(0);
94 }
95 result
96}
97
98pub fn rocket(figment: Figment) -> Rocket<Build> {
99 let supervisor = Supervisor::new();

Callers 2

shutdownFunction · 0.85
handle_shutdown_signalsFunction · 0.85

Calls 1

shutdownMethod · 0.45

Tested by

no test coverage detected