Skip to main content

check_queue_size

Function check_queue_size 

Source
pub fn check_queue_size(
    queue_path: &Path,
    task_count: usize,
    size_threshold_kb: u32,
    count_threshold: u32,
) -> Result<SizeCheckResult>
Expand description

Check if queue exceeds configured thresholds.

§Arguments

  • queue_path - Path to the queue file.
  • task_count - Number of tasks in the queue.
  • size_threshold_kb - Threshold for file size warning in KB.
  • count_threshold - Threshold for task count warning.

§Returns

A SizeCheckResult indicating which thresholds (if any) were exceeded.