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.

Feature: Bufdir Export

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

Dependencies (1)

Components this component depends on

Dependents (1)

Components that depend on this component

Related Data Entities (2)

Data entities managed by this component