Skip to content

Commit

Permalink
feat(schema): add scylla_task_id to backup_run_progress
Browse files Browse the repository at this point in the history
A separate column for Scylla task ID is needed because:
- it has a different type from agent job ID
- it make it clear which API was used
  • Loading branch information
Michal-Leszczynski committed Dec 17, 2024
1 parent e250e3b commit 58bc627
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions pkg/schema/table/table.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion pkg/service/backup/model.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,11 @@ type RunProgress struct {
Unit int64
TableName string

AgentJobID int64
// Uploading SSTables could be done by either Rclone or Scylla API.
// Only one of those IDs should be set.
AgentJobID int64
ScyllaTaskID string

StartedAt *time.Time
CompletedAt *time.Time
Error string
Expand Down
1 change: 1 addition & 0 deletions schema/v3.5.0.cql
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ALTER TABLE backup_run_progress ADD scylla_task_id text;

0 comments on commit 58bc627

Please sign in to comment.