Skip to main content

check_task_scope

Function check_task_scope 

Source
pub fn check_task_scope(
    task: &Value,
    worker_id: &str,
    agent_name: &str,
    workspace_ids: &[String],
) -> Result<(), String>
Expand description

Whether a task is within scope for a given worker.

Returns Ok(()) if the task should be processed, or Err(reason) with a human-readable rejection reason if it should be skipped.