Skip to main content

batch_apply_edit

Function batch_apply_edit 

Source
pub fn batch_apply_edit(
    queue: &mut QueueFile,
    done: Option<&QueueFile>,
    task_ids: &[String],
    key: TaskEditKey,
    value: &str,
    now_rfc3339: &str,
    id_prefix: &str,
    id_width: usize,
    max_dependency_depth: u8,
    continue_on_error: bool,
) -> Result<BatchOperationResult>
Expand description

Batch edit field for multiple tasks.

§Arguments

  • queue - The queue file to modify
  • done - Optional done file for validation
  • task_ids - List of task IDs to update
  • key - The field to edit
  • value - The new value
  • now_rfc3339 - Current timestamp for updated_at
  • id_prefix - Task ID prefix for validation
  • id_width - Task ID width for validation
  • max_dependency_depth - Maximum dependency depth for validation
  • continue_on_error - If true, continue processing on individual failures

§Returns

A BatchOperationResult with details of successes and failures.