mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-07-21 01:18:48 +08:00
创建仓库开通建木DevOps job延迟5秒
This commit is contained in:
@@ -15,7 +15,7 @@ class MigrateRemoteRepositoryJob < ApplicationJob
|
||||
## open jianmu devops
|
||||
project_id = repo&.project&.id
|
||||
puts "############ mirror project_id,user_id: #{project_id},#{user_id} ############"
|
||||
OpenProjectDevOpsJob.perform_later(project_id, user_id) if project_id.present? && user_id.present?
|
||||
OpenProjectDevOpsJob.set(wait: 5.seconds).perform_later(project_id, user_id) if project_id.present? && user_id.present?
|
||||
puts "############ mirror status: #{repo.mirror.status} ############"
|
||||
else
|
||||
repo&.mirror&.failed!
|
||||
|
||||
Reference in New Issue
Block a user