require 'sidekiq'
module KYC
module VerifyInvestor
class AccreditedVerificationWorker
include Sidekiq::Worker
def perform()
....
end
end
end
end
Asked
Active
Viewed 834 times
0

Siim Liiser
- 3,860
- 11
- 13
-
1Sidekiq 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 Answers
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')

Pedro Augusto Ramalho Duarte
- 376
- 2
- 10