Skip to main content

batch_archive_tasks

Function batch_archive_tasks 

Source
pub fn batch_archive_tasks(
    active: &mut QueueFile,
    done: &mut QueueFile,
    task_ids: &[String],
    now_rfc3339: &str,
    continue_on_error: bool,
) -> Result<BatchOperationResult>
Expand description

Batch archive terminal tasks (Done/Rejected) from active queue to done.

§Arguments

  • active - The active queue file to modify
  • done - The done archive file to append to
  • task_ids - List of task IDs to archive
  • now_rfc3339 - Current timestamp for updated_at/completed_at
  • continue_on_error - If true, continue processing on individual failures

§Returns

A BatchOperationResult with details of successes and failures.