Skip to main content

batch_clone_tasks

Function batch_clone_tasks 

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

Batch clone multiple tasks.

§Arguments

  • queue - The active queue to insert cloned tasks into
  • done - Optional done queue to search for source tasks
  • task_ids - List of task IDs to clone
  • status - Status for cloned tasks
  • title_prefix - Optional prefix for cloned task titles
  • now_rfc3339 - Current timestamp for created_at/updated_at
  • id_prefix - Task ID prefix
  • id_width - Task ID numeric width
  • max_dependency_depth - Max dependency depth for validation
  • continue_on_error - If true, continue processing on individual failures

§Returns

A BatchOperationResult with details of successes and failures, including created task IDs.