Browse Source

更改:延迟10s发送websocket消息

pull/347/head
yystopf 2 years ago
parent
commit
0c4e3a1be7
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/jobs/migrate_remote_repository_job.rb

+ 1
- 1
app/jobs/migrate_remote_repository_job.rb View File

@@ -33,6 +33,6 @@ class MigrateRemoteRepositoryJob < ApplicationJob
end
end
# UpdateProjectTopicJob 中语言要延迟1S才能获取
BroadcastMirrorRepoMsgJob.set(wait: 1.seconds).perform_later(repo.id) unless repo&.mirror.waiting?
BroadcastMirrorRepoMsgJob.set(wait: 10.seconds).perform_later(repo.id) unless repo&.mirror.waiting?
end
end

Loading…
Cancel
Save