Task Statistics Operations

Task statistics operations.

async shared.database.operations.task_statistics.get_or_create_task_statistics()[source]

Get current task statistics or create default if none exist.

Return type:

TaskStatistics

Returns:

TaskStatistics instance

async shared.database.operations.task_statistics.update_task_statistics(processing_time_seconds, success=True)[source]

Update global task processing statistics.

Parameters:
  • processing_time_seconds (float) – Time taken to process the task

  • success (bool) – Whether the task completed successfully

Return type:

None