Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
fix: task_executor_data_update.go (#2015)
Danny Xuab60de4e23de
diff --git a/server/task_executor.go b/server/task_executor.goindex 45e18c04cc..08f44e0d70 100644--- a/server/task_executor.go+++ b/server/task_executor.go@@ -27,9 +27,9 @@ type TaskExecutor interface {// usually indicates a transient error and will make scheduler retry later.// 2. If err is non-nil, then the detail field will be ignored since info is provided in the err.RunOnce(ctx context.Context, server *Server, task *api.Task) (terminated bool, result *api.TaskRunResultPayload, err error)- // IsCompleted tells the scheduler if the task execution has completed+ // IsCompleted tells the scheduler if the task execution has completed.IsCompleted() bool- // GetProgress returns the task progress+ // GetProgress returns the task progress.GetProgress() api.Progress}diff --git a/server/task_executor_data_update.go b/server/task_executor_data_update.goindex 4eccbf3521..65aa51b68f 100644--- a/server/task_executor_data_update.go+++ b/server/task_executor_data_update.go@@ -31,7 +31,12 @@ func (exec *DataUpdateTaskExecutor) RunOnce(ctx context.Context, server *Server,return runMigration(ctx, server, task, db.Data, payload.Statement, payload.SchemaVersion, payload.VCSPushEvent)}-// IsCompleted tells the scheduler if the task execution has completed+// IsCompleted tells the scheduler if the task execution has completed.func (exec *DataUpdateTaskExecutor) IsCompleted() bool {return atomic.LoadInt32(&exec.completed) == 1}++// GetProgress returns the task progress.+func (exec *DataUpdateTaskExecutor) GetProgress() api.Progress {+ return api.Progress{}+}diff --git a/server/task_executor_database_backup.go b/server/task_executor_database_backup.goindex 8fa435c971..3801214d1b 100644--- a/server/task_executor_database_backup.go+++ b/server/task_executor_database_backup.go@@ -28,7 +28,7 @@ func (exec *DatabaseBackupTaskExecutor) IsCompleted() bool {return atomic.LoadInt32(&exec.completed) == 1}-// GetProgress returns the task progress+// GetProgress returns the task progress.func (exec *DatabaseBackupTaskExecutor) GetProgress() api.Progress {return api.Progress{}}diff --git a/server/task_executor_database_create.go b/server/task_executor_database_create.goindex 8d7401c4ae..2d3e1bac73 100644--- a/server/task_executor_database_create.go+++ b/server/task_executor_database_create.go@@ -29,7 +29,7 @@ func (exec *DatabaseCreateTaskExecutor) IsCompleted() bool {return atomic.LoadInt32(&exec.completed) == 1}-// GetProgress returns the task progress+// GetProgress returns the task progress.func (exec *DatabaseCreateTaskExecutor) GetProgress() api.Progress {return api.Progress{}}diff --git a/server/task_executor_database_restore.go b/server/task_executor_database_restore.goindex e8cd58e184..5dd57c195d 100644--- a/server/task_executor_database_restore.go+++ b/server/task_executor_database_restore.go@@ -33,7 +33,7 @@ func (exec *DatabaseRestoreTaskExecutor) IsCompleted() bool {return atomic.LoadInt32(&exec.completed) == 1}-// GetProgress returns the task progress+// GetProgress returns the task progress.func (exec *DatabaseRestoreTaskExecutor) GetProgress() api.Progress {return api.Progress{}}diff --git a/server/task_executor_default.go b/server/task_executor_default.goindex e09b793e06..befc030b61 100644--- a/server/task_executor_default.go+++ b/server/task_executor_default.go@@ -33,7 +33,7 @@ func (exec *DefaultTaskExecutor) IsCompleted() bool {return atomic.LoadInt32(&exec.completed) == 1}-// GetProgress returns the task progress+// GetProgress returns the task progress.func (exec *DefaultTaskExecutor) GetProgress() api.Progress {return api.Progress{}}diff --git a/server/task_executor_pitr_cutover.go b/server/task_executor_pitr_cutover.goindex dabbec96ca..8bbee2fc46 100644--- a/server/task_executor_pitr_cutover.go+++ b/server/task_executor_pitr_cutover.go@@ -81,7 +81,7 @@ func (exec *PITRCutoverTaskExecutor) IsCompleted() bool {return atomic.LoadInt32(&exec.completed) == 1}-// GetProgress returns the task progress+// GetProgress returns the task progress.func (exec *PITRCutoverTaskExecutor) GetProgress() api.Progress {return api.Progress{}}diff --git a/server/task_executor_pitr_restore.go b/server/task_executor_pitr_restore.goindex 64370c434a..412a14f078 100644--- a/server/task_executor_pitr_restore.go+++ b/server/task_executor_pitr_restore.go@@ -65,7 +65,7 @@ func (exec *PITRRestoreTaskExecutor) IsCompleted() bool {return atomic.LoadInt32(&exec.completed) == 1}-// GetProgress returns the task progress+// GetProgress returns the task progress.func (exec *PITRRestoreTaskExecutor) GetProgress() api.Progress {return api.Progress{}}diff --git a/server/task_executor_schema_update.go b/server/task_executor_schema_update.goindex 3d79a54b89..1ce6f53b8b 100644--- a/server/task_executor_schema_update.go+++ b/server/task_executor_schema_update.go@@ -35,7 +35,7 @@ func (exec *SchemaUpdateTaskExecutor) IsCompleted() bool {return atomic.LoadInt32(&exec.completed) == 1}-// GetProgress returns the task progress+// GetProgress returns the task progress.func (exec *SchemaUpdateTaskExecutor) GetProgress() api.Progress {return api.Progress{}}diff --git a/server/task_executor_schema_update_ghost_cutover.go b/server/task_executor_schema_update_ghost_cutover.goindex b7b5c87b2f..3c40c05779 100644--- a/server/task_executor_schema_update_ghost_cutover.go+++ b/server/task_executor_schema_update_ghost_cutover.go@@ -137,7 +137,7 @@ func (exec *SchemaUpdateGhostCutoverTaskExecutor) IsCompleted() bool {return atomic.LoadInt32(&exec.completed) == 1}-// GetProgress returns the task progress+// GetProgress returns the task progress.func (exec *SchemaUpdateGhostCutoverTaskExecutor) GetProgress() api.Progress {return api.Progress{}}diff --git a/server/task_executor_schema_update_ghost_sync.go b/server/task_executor_schema_update_ghost_sync.goindex c9b770a617..1cda782706 100644--- a/server/task_executor_schema_update_ghost_sync.go+++ b/server/task_executor_schema_update_ghost_sync.go@@ -44,7 +44,7 @@ func (exec *SchemaUpdateGhostSyncTaskExecutor) IsCompleted() bool {return atomic.LoadInt32(&exec.completed) == 1}-// GetProgress returns the task progress+// GetProgress returns the task progress.func (exec *SchemaUpdateGhostSyncTaskExecutor) GetProgress() api.Progress {return api.Progress{}}