Module control

Module control 

Source
Expand description

Worker Control Commands

This module provides the protocol for remote worker control and inspection. It enables clients to query worker state, inspect running tasks, and send control commands to workers.

§Example

use celers_core::control::{ControlCommand, InspectCommand, InspectResponse};

// Create an inspect active tasks command
let cmd = ControlCommand::Inspect(InspectCommand::Active);

// Serialize for sending to worker
let json = serde_json::to_string(&cmd).unwrap();

Structs§

ActiveTaskInfo
Information about an actively executing task
BrokerStats
Broker connection statistics
DeliveryInfo
Delivery information for a task
PoolStats
Worker pool statistics
QueueStats
Queue statistics
RequestInfo
Request information for a task
ReservedTaskInfo
Information about a reserved (prefetched) task
ScheduledTaskInfo
Information about a scheduled task (with ETA or countdown)
WorkerConf
Worker configuration
WorkerReport
Worker report (comprehensive status)
WorkerStats
Worker statistics

Enums§

ControlCommand
Control commands that can be sent to workers
ControlResponse
Response to a control command
InspectCommand
Inspection sub-commands
InspectResponse
Response data from inspect commands
QueueCommand
Queue control sub-commands
QueueResponse
Response to queue control commands