Commit 0ae30057 authored by Dylan Griffith's avatar Dylan Griffith

Order builds by id instead of created_at in RegisterJobService

parent af15b6f0
......@@ -85,7 +85,7 @@ module Ci
end
def builds_for_project_runner
new_builds.where(project: runner.projects.without_deleted.with_builds_enabled).order('created_at ASC')
new_builds.where(project: runner.projects.without_deleted.with_builds_enabled).order('id ASC')
end
def builds_for_group_runner
......@@ -94,7 +94,7 @@ module Ci
.with_group_runners_enabled
.with_builds_enabled
.without_deleted
new_builds.where(project: projects).order('created_at ASC')
new_builds.where(project: projects).order('id ASC')
end
def running_builds_for_shared_runners
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment