From f71a9de14d118fb14666df9f78365779308312e1 Mon Sep 17 00:00:00 2001 From: Grzegorz Bizon Date: Fri, 19 May 2017 20:42:05 +0200 Subject: Exclude manual actions from cancelable jobs scope --- app/models/concerns/has_status.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/models/concerns/has_status.rb') 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 -- cgit v1.2.1