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

Function command_worker_stop

crates/hyperqueue/src/bin/hq.rs:232–239  ·  view source on GitHub ↗
(
    gsettings: &GlobalSettings,
    opts: WorkerStopOpts,
)

Source from the content-addressed store, hash-verified

230}
231
232async fn command_worker_stop(
233 gsettings: &GlobalSettings,
234 opts: WorkerStopOpts,
235) -> anyhow::Result<()> {
236 let mut session = get_client_session(gsettings.server_directory()).await?;
237 stop_worker(&mut session, opts.selector_arg).await?;
238 Ok(())
239}
240
241async fn command_worker_list(
242 gsettings: &GlobalSettings,

Callers 1

mainFunction · 0.85

Calls 3

get_client_sessionFunction · 0.85
server_directoryMethod · 0.80
stop_workerFunction · 0.50

Tested by

no test coverage detected