Skip to main content

run_task_ctx_events

Function run_task_ctx_events 

Source
pub fn run_task_ctx_events(
    command: &TaskEventsCommand,
    env: &BTreeMap<String, String>,
    version: &str,
    (out, err): (&mut impl Write, &mut impl Write),
) -> Result<(), String>
Expand description

Runs schedr task-ctx events: the event posted, or those listed, one line of JSON each.

§Errors

Outside a task, when --data or --at doesn’t read, when the channel is gone, or when the API refuses (its message).