fixed 新建项目初始化项目标签不延时

This commit is contained in:
xxqfamous 2023-06-08 17:08:58 +08:00
parent c7b61775c2
commit cf4b5e9ab8
1 changed files with 1 additions and 1 deletions

View File

@ -16,7 +16,7 @@ class MigrateRemoteRepositoryJob < ApplicationJob
project_id = repo&.project&.id
puts "############ mirror project_id,user_id: #{project_id},#{user_id} ############"
OpenProjectDevOpsJob.set(wait: 5.seconds).perform_later(project_id, user_id) if project_id.present? && user_id.present?
UpdateProjectTopicJob.set(wait: 5.seconds).perform_later(project_id) if project_id.present?
UpdateProjectTopicJob.perform_later(project_id) if project_id.present?
puts "############ mirror status: #{repo.mirror.status} ############"
else
repo&.mirror&.failed!