MCPcopy Create free account
hub / github.com/It4innovations/hyperqueue / debug_dump

Function debug_dump

crates/hyperqueue/src/client/commands/server.rs:230–237  ·  view source on GitHub ↗
(gsettings: &GlobalSettings, opts: DebugDumpOpts)

Source from the content-addressed store, hash-verified

228}
229
230async fn debug_dump(gsettings: &GlobalSettings, opts: DebugDumpOpts) -> anyhow::Result<()> {
231 let mut session = get_client_session(gsettings.server_directory()).await?;
232 log::info!("Dumping server state ...");
233 let message = FromClientMessage::ServerDebugDump(opts.path);
234 rpc_call!(session.connection(), message, ToClientMessage::Finished => ()).await?;
235 log::info!("Dump finished");
236 Ok(())
237}
238
239async fn stop_server(gsettings: &GlobalSettings, _opts: ServerStopOpts) -> anyhow::Result<()> {
240 let mut session = get_client_session(gsettings.server_directory()).await?;

Callers 1

command_serverFunction · 0.85

Calls 2

get_client_sessionFunction · 0.85
server_directoryMethod · 0.80

Tested by

no test coverage detected