Skip to content

Commit

Permalink
Rescue super popular repositiories timeouts too
Browse files Browse the repository at this point in the history
  • Loading branch information
tiegz committed May 1, 2024
1 parent 4da251e commit f17c4c0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/models/project.rb
Original file line number Diff line number Diff line change
Expand Up @@ -631,6 +631,8 @@ def dependent_repositories_optimized(limit, offset = 0)
.select("projects.repository_id")
.distinct
.count
rescue ActiveRecord::QueryCanceled
[]
end

Repository
Expand Down

0 comments on commit f17c4c0

Please sign in to comment.