Get the number of completed tasks in history. Returns: int: Number of tasks that have been completed and are stored in history. Returns 0 if history_tasks is None (defensive programming).
(self)
| 447 | return {} |
| 448 | |
| 449 | def done_count(self) -> int: |
| 450 | """Get the number of completed tasks in history. |
| 451 | |
| 452 | Returns: |
| 453 | int: Number of tasks that have been completed and are stored in history. |
| 454 | Returns 0 if history_tasks is None (defensive programming). |
| 455 | """ |
| 456 | return len(self.history_tasks) if self.history_tasks is not None else 0 |
| 457 | |
| 458 | def total_count(self) -> int: |
| 459 | """Get the total number of tasks currently in the system (pending + running). |
no outgoing calls
no test coverage detected