fixed 新建项目初始化项目标签不延时日志
This commit is contained in:
parent
cf4b5e9ab8
commit
52cefc5a51
|
@ -8,6 +8,7 @@ class UpdateProjectTopicJob < ApplicationJob
|
|||
return if project.blank?
|
||||
begin
|
||||
languages = $gitea_client.get_repos_languages_by_owner_repo(project.owner.login, project.identifier)
|
||||
puts "#{project.owner.login}/#{project.identifier} get_repos_languages:#{languages}"
|
||||
topic_count = 0
|
||||
if project.project_category_id.present?
|
||||
project_topic = ProjectTopic.find_or_create_by!(name: project.project_category.name.downcase)
|
||||
|
@ -24,8 +25,8 @@ class UpdateProjectTopicJob < ApplicationJob
|
|||
topic_count +=1
|
||||
end
|
||||
end
|
||||
rescue
|
||||
|
||||
rescue => e
|
||||
puts "get_repos_languages: error:#{e.message}"
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue