flow_inference.status.Status
- class flow_inference.status.Status[source]
Track file-level progress and runtime during inference.
The status object stores counters for successful files, failed downloads, and failed inference attempts. It also logs progress updates and a final summary for long-running inference jobs.
Methods
__init__()Initialize empty status counters.
calculate_processed_files()Calculate the number of files processed so far.
calculate_runtime()Calculate the elapsed runtime since status initialization.
initialize_status(total_files)Initialize counters for a new inference run.
summary()Log a final summary for the inference run.
update_file_status(status_type, file_name)Update counters for a single file status.
update_progress([status_type, current_item_name])Update and log current inference progress.