Export Status Poller
Component Detail
Service Layer
low complexity
frontend
1
Dependencies
1
Dependents
2
Entities
0
Integrations
Description
Frontend polling service used by the Export Progress Modal to track an in-flight export job. Calls the status endpoint on an interval, applies exponential backoff after repeated checks, and notifies the UI when the job reaches a terminal state.
export-status-poller
Responsibilities
- Poll GET /api/v1/reports/bufdir/export/:jobId/status on a configurable interval
- Apply exponential backoff to reduce load during long-running exports
- Emit terminal-state events (completed, failed) to the consuming modal
- Cancel polling when the modal is dismissed
Interfaces
startPolling(jobId: string, onUpdate: (status: ExportJobStatus) => void): void
stopPolling(jobId: string): void
Relationships
Related Data Entities (2)
Data entities managed by this component