spdl.pipeline.TaskStatsHook¶
-
class TaskStatsHook(
name: str,
concurrency: int,
interval: float = -1
)[source]¶ Track the task runtimes and success rate.
- Parameters:
name – Nmae of the stage. Only used for logging.
concurrency – Concurrency of the stage. Only used for logging.
Methods
Track the stage runtime and log the task stats.
Track task runtime and success rate.
Attributes
- stage_hook() AsyncIterator[None] [source]¶
Track the stage runtime and log the task stats.
- task_hook() AsyncIterator[None] [source]¶
Track task runtime and success rate.