pub async fn run(
dialer: &dyn Dialer,
node: &str,
request: TaskRequest,
events: Option<UnboundedSender<AgentEvent>>,
approver: &dyn Approver,
cancel: &CancelToken,
) -> Result<RemoteOutcome, RemoteError>Expand description
Run a task on node. Events arrive as ordinary AgentEvents (so the app’s panel code is
the same as for a local session), approval cards go to approver here, and cancel stops
the task on the node.