Skip to content

ProgressTracker

reference
1 min readUpdated

Kind: Class

Source: atloria-monorepo/packages/doc-automation/src/v2/utils/progress-tracker.ts

Methods

MethodSignatureReturns
startBatchstartBatch(batchIndex: number, itemsInBatch: number, additionalInfo: Record<string, unknown>)number
completeBatchcompleteBatch(batchStartTime: number, itemsCompleted: number, additionalInfo: Record<string, unknown>)ProgressStats
completeItemcompleteItem(itemStartTime: number, itemName: string, additionalInfo: Record<string, unknown>)ProgressStats
getStatsgetStats()ProgressStats
completecomplete(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.

Was this page helpful?

Download as PDF