mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-07-14 22:24:36 +08:00
change versions and check repository
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user