Skip to content
Snippets Groups Projects
Commit 76b97521 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
Browse files

Fixed running condition

parent 3e4a8910
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -127,7 +127,7 @@ class Project < ActiveRecord::Base
 
def no_running_builds?
# Get running builds not later than 3 days ago to ignore hungs
builds.running.where("updated_at < ?", 3.days.ago).empty?
builds.running.where("updated_at > ?", 3.days.ago).empty?
end
end
 
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment