0
require 'sidekiq'

module KYC
  module VerifyInvestor
    class AccreditedVerificationWorker
      include Sidekiq::Worker
       
      def perform()
        ....
      end
    end
  end
end
Siim Liiser
  • 3,860
  • 11
  • 13
  • 1
    Sidekiq Enterprise has this feature: https://sidekiq.org/products/enterprise.html. There are free plugins too. A few years ago I used [Sidetiq](https://github.com/endofunky/sidetiq), but it's is abandoned now. – Sergio Tulentsev May 20 '22 at 13:50

1 Answers1

0

For free solution you can use sidekiq-cron gem and create a cron job from console to run every 5 minutes:

Sidekiq::Cron::Job.create(name: 'AccreditedVerificationWorker - every 5min', cron: '*/5 * * * *', class: 'KYC::VerifyInvestor::AccreditedVerificationWorker')