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: check ok order (#4654)
p0nyc616d129d48f
diff --git a/backend/runner/taskrun/scheduler.go b/backend/runner/taskrun/scheduler.goindex 437b35a7c3..cf009f5069 100644--- a/backend/runner/taskrun/scheduler.go+++ b/backend/runner/taskrun/scheduler.go@@ -862,10 +862,10 @@ func (s *Scheduler) PatchTaskStatus(ctx context.Context, task *store.TaskMessagereturn common.Errorf(common.NotImplemented, "Canceling task type %s is not supported", task.Type)}cancelAny, ok := s.stateCfg.RunningTasksCancel.Load(task.ID)- cancel := cancelAny.(context.CancelFunc)if !ok {return errors.New("failed to cancel task")}+ cancel := cancelAny.(context.CancelFunc)cancel()result, err := json.Marshal(api.TaskRunResultPayload{Detail: "Task cancellation requested.",