mirror of
https://github.com/sstent/FitTrack_GarminSync.git
synced 2026-02-10 08:22:07 +00:00
feat: Implement single sync job management and progress tracking
This commit is contained in:
14
specs/004-home-sstent-projects/data-model.md
Normal file
14
specs/004-home-sstent-projects/data-model.md
Normal file
@@ -0,0 +1,14 @@
|
||||
# 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".
|
||||
Reference in New Issue
Block a user