diff --git a/app/models/ci/pipeline.rb b/app/models/ci/pipeline.rb index e03def25755..23c6ad819c4 100644 --- a/app/models/ci/pipeline.rb +++ b/app/models/ci/pipeline.rb @@ -97,7 +97,7 @@ module Ci end after_transition :canceled => any - [:canceled] do |pipeline| - pipeline.update(auto_canceled_by: nil) + pipeline.auto_canceled_by = nil end end