change versions and check repository

This commit is contained in:
sylor_huang@126.com
2020-07-17 11:18:12 +08:00
parent 5cd9fe9e34
commit 9372fcf6a4
5 changed files with 66 additions and 1 deletions
+12
View File
@@ -0,0 +1,12 @@
class CheckMirrorRake
# 运行示例: bundle exec rails runner "CheckMirrorRake.new.call()"
def call
SyncLog.sync_log("=====begin to check mirror======")
all_projects = Projects.select(:id,:identifier,:user_id, :gpid, :forked_count,:is_public).includes(:owner, :repository)
all_projects.each do |project|
SyncLog.sync_log("=====check_project_id:#{project.id}======")
CheckMirrorJob.perform_later(project)
end
end
end