Skip to content

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

fix: activity creator should be taskPatch.Updater (#4851)

p0ny32eaaeef8489
diff --git a/backend/runner/taskrun/scheduler.go b/backend/runner/taskrun/scheduler.go
index 01f83e266c..34d361fbdf 100644
--- a/backend/runner/taskrun/scheduler.go
+++ b/backend/runner/taskrun/scheduler.go
@@ -526,7 +526,7 @@ func (s *Scheduler) PatchTask(ctx context.Context, task *store.TaskMessage, task
return echo.NewHTTPError(http.StatusInternalServerError, "Failed to create activity after updating task statement: %v", taskPatched.Name).SetInternal(err)
}
if _, err := s.activityManager.CreateActivity(ctx, &api.ActivityCreate{
- CreatorID: taskPatched.CreatorID,
+ CreatorID: taskPatch.UpdaterID,
ContainerID: taskPatched.PipelineID,
Type: api.ActivityPipelineTaskStatementUpdate,
Payload: string(payload),
@@ -551,7 +551,7 @@ func (s *Scheduler) PatchTask(ctx context.Context, task *store.TaskMessage, task
return echo.NewHTTPError(http.StatusInternalServerError, errors.Wrapf(err, "failed to marshal earliest allowed time activity payload: %v", task.Name))
}
activityCreate := &api.ActivityCreate{
- CreatorID: taskPatched.CreatorID,
+ CreatorID: taskPatch.UpdaterID,
ContainerID: taskPatched.PipelineID,
Type: api.ActivityPipelineTaskEarliestAllowedTimeUpdate,
Payload: string(payload),