Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

fix: task run sync db log (#14036)

p0ny0ea95a5988e7
diff --git a/backend/runner/taskrun/schema_update_executor.go b/backend/runner/taskrun/schema_update_executor.go
index 427ead759c..1aa7114c5b 100644
--- a/backend/runner/taskrun/schema_update_executor.go
+++ b/backend/runner/taskrun/schema_update_executor.go
@@ -83,13 +83,14 @@ func (exec *SchemaUpdateExecutor) RunOnce(ctx context.Context, driverCtx context
slog.String("databaseName", database.DatabaseName),
log.BBError(err),
)
+ } else {
+ exec.store.CreateTaskRunLogS(ctx, taskRunUID, time.Now(), exec.profile.DeployID, &storepb.TaskRunLog{
+ Type: storepb.TaskRunLog_DATABASE_SYNC_END,
+ DatabaseSyncEnd: &storepb.TaskRunLog_DatabaseSyncEnd{
+ Error: "",
+ },
+ })
}
- exec.store.CreateTaskRunLogS(ctx, taskRunUID, time.Now(), exec.profile.DeployID, &storepb.TaskRunLog{
- Type: storepb.TaskRunLog_DATABASE_SYNC_END,
- DatabaseSyncEnd: &storepb.TaskRunLog_DatabaseSyncEnd{
- Error: "",
- },
- })
return terminated, result, err
}