pub async fn inspect_dlq(
broker_url: &str,
queue: &str,
limit: usize,
) -> Result<()>Expand description
Inspect failed tasks in the Dead Letter Queue (DLQ).
Displays a list of failed tasks with their IDs, task names, and failure metadata. Useful for debugging and understanding why tasks are failing.
§Arguments
broker_url- Redis connection URLqueue- Queue namelimit- Maximum number of tasks to display (default: 10)
§Returns
Returns Ok(()) on success, or an error if connection fails.
§Examples
// Show last 20 failed tasks
inspect_dlq("redis://localhost:6379", "my_queue", 20).await?;