# ProgressTracker

**Kind:** Class

**Source:** [`atloria-monorepo/packages/doc-automation/src/v2/utils/progress-tracker.ts`](https://github.com/sherkety/atloria/blob/main/atloria-monorepo/packages/doc-automation/src/v2/utils/progress-tracker.ts#L26)

## Methods

| Method | Signature | Returns |
|---|---|---|
| `startBatch` | `startBatch(batchIndex: number, itemsInBatch: number, additionalInfo: Record<string, unknown>)` | `number` |
| `completeBatch` | `completeBatch(batchStartTime: number, itemsCompleted: number, additionalInfo: Record<string, unknown>)` | `ProgressStats` |
| `completeItem` | `completeItem(itemStartTime: number, itemName: string, additionalInfo: Record<string, unknown>)` | `ProgressStats` |
| `getStats` | `getStats()` | `ProgressStats` |
| `complete` | `complete(additionalInfo: Record<string, unknown>)` | `void` |

## Where it refuses work

- `ProgressTracker` stops the work with an early return when `ms < 1000`.
- `ProgressTracker` stops the work with an early return when `ms < 60000`.
