Skip to main content

Module size_check

Module size_check 

Source
Expand description

Queue file size checking and warning generation.

Responsibilities:

  • Check if queue file exceeds size or task count thresholds.
  • Generate user-friendly warning messages with remediation suggestions.

Not handled here:

  • Configuration loading (passed in by caller).
  • Actual queue operations (archive/prune) - only suggestions.

Structs§

QueueSizeInfo
Information about the queue file size and task count.
SizeCheckResult
Result of checking queue size against thresholds.

Functions§

check_queue_size
Check if queue exceeds configured thresholds.
count_threshold_or_default
Get the configured task count threshold, or the default.
print_size_warning_if_needed
Print warning if thresholds exceeded (respects quiet flag).
size_threshold_or_default
Get the configured size threshold, or the default.