Check if repo exists before attempting to update cache info

Closes #14361
This commit is contained in:
Stan Hu
2016-03-27 06:17:49 -07:00
parent c1834664a7
commit 720ef51bd9
2 changed files with 30 additions and 0 deletions
+3
View File
@@ -5,6 +5,9 @@ class ProjectCacheWorker
def perform(project_id)
project = Project.find(project_id)
return unless project.repository.exists?
project.update_repository_size
project.update_commit_count