Files

778 B

Data Model: Sync Job Management with Progress Tracking

Entity: SyncJob

Represents the state and progress of the single active synchronization process.

Attributes:

  • status (string): Indicates the current state of the sync. Possible values: "idle", "in_progress", "completed", "failed".
  • progress (float): Completion percentage, ranging from 0.0 to 1.0.
  • start_time (datetime): Timestamp when the sync operation began.
  • end_time (datetime, optional): Timestamp when the sync operation concluded (either completed or failed).
  • error_message (string, optional): Contains details if the sync operation failed.
  • job_type (string, optional): Indicates the type of data being synchronized. Possible values: "activities", "health", "workouts".