The code powering m.abunchtell.com https://m.abunchtell.com
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
 

15 行
303 B

  1. # frozen_string_literal: true
  2. class RegenerationWorker
  3. include Sidekiq::Worker
  4. sidekiq_options unique: :until_executed
  5. def perform(account_id, _ = :home)
  6. account = Account.find(account_id)
  7. PrecomputeFeedService.new.call(account)
  8. rescue ActiveRecord::RecordNotFound
  9. true
  10. end
  11. end