Skip to main content

batch_set_status

Function batch_set_status 

Source
pub fn batch_set_status(
    queue: &mut QueueFile,
    task_ids: &[String],
    status: TaskStatus,
    now_rfc3339: &str,
    note: Option<&str>,
    continue_on_error: bool,
) -> Result<BatchOperationResult>
Expand description

Batch set status for multiple tasks.

§Arguments

  • queue - The queue file to modify
  • task_ids - List of task IDs to update
  • status - The new status to set
  • now_rfc3339 - Current timestamp for updated_at
  • note - Optional note to append to each task
  • continue_on_error - If true, continue processing on individual failures

§Returns

A BatchOperationResult with details of successes and failures.