Skip to main content

batch_set_field

Function batch_set_field 

Source
pub fn batch_set_field(
    queue: &mut QueueFile,
    task_ids: &[String],
    key: &str,
    value: &str,
    now_rfc3339: &str,
    continue_on_error: bool,
) -> Result<BatchOperationResult>
Expand description

Batch set custom field for multiple tasks.

§Arguments

  • queue - The queue file to modify
  • task_ids - List of task IDs to update
  • key - The custom field key
  • value - The custom field value
  • now_rfc3339 - Current timestamp for updated_at
  • continue_on_error - If true, continue processing on individual failures

§Returns

A BatchOperationResult with details of successes and failures.