Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2017-05-19 21:42:05 +0300
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2017-05-19 21:45:49 +0300
commitf71a9de14d118fb14666df9f78365779308312e1 (patch)
tree0afe2ec00dc22fe5eff9c24b25becb16fef9c980 /app/models
parentbdf62a19d2cdbdfe554eb73500fd5fe4744161b1 (diff)
Exclude manual actions from cancelable jobs scope
Diffstat (limited to 'app/models')
-rw-r--r--app/models/concerns/has_status.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/concerns/has_status.rb b/app/models/concerns/has_status.rb
index dff7b6e3523..3c9c6584e02 100644
--- a/app/models/concerns/has_status.rb
+++ b/app/models/concerns/has_status.rb
@@ -82,7 +82,7 @@ module HasStatus
scope :failed_or_canceled, -> { where(status: [:failed, :canceled]) }
scope :cancelable, -> do
- where(status: [:running, :pending, :created, :manual])
+ where(status: [:running, :pending, :created])
end
end