Skip to main content

batch_split_tasks

Function batch_split_tasks 

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

Batch split multiple tasks into child tasks.

§Arguments

  • queue - The active queue to modify
  • task_ids - List of task IDs to split
  • number - Number of child tasks to create per source
  • status - Status for child tasks
  • title_prefix - Optional prefix for child task titles
  • distribute_plan - Whether to distribute plan items across children
  • now_rfc3339 - Current timestamp for timestamps
  • 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.