Ruby on Rails throws LoadError: Unable to autoload constant for one job, but not for the second
My code triggers two Sidekiq jobs called ExcelImportReconcileWorker with different arguments. The worker creates a new instance of a Parsers::ExcelImport class and runs a method in it. Every time after I restart the Sidekiq, one job fails with LoadError: Unable to autoload constant Parsers::ExcelImport
, but the other one runs fine.
Ruby on Rails throws LoadError: Unable to autoload constant for one job, but not for the second
My code triggers two Sidekiq jobs called ExcelImportReconcileWorker with different arguments. The worker creates a new instance of a Parsers::ExcelImport class and runs a method in it. Every time after I restart the Sidekiq, one job fails with LoadError: Unable to autoload constant Parsers::ExcelImport
, but the other one runs fine.
Getting Argument Error while trying to cancel a sidekiq job using Sidekiq::Status.cancel
Am trying to cancel a siekiq job. I used Sidekiq::Status.cancel(jid)
This is my Sidekiq::Status module
How to retry for a period of time with sidekiq?
I am looking for a way to limit a job, to be retried only for 2 days or 48 hours. After which it should be cancelled, unless processed. I know with sidekiq_options
, I can limit the number of retries. Though, what I’m looking for is cancelling a job if it doesn’t get processed within 2 days.