Replies: 2 comments 4 replies
-
|
I'm glad to see you upgrading but Sidekiq 4 and 5 are no longer supported. Review the upgrade notes for each major version in |
Beta Was this translation helpful? Give feedback.
4 replies
-
|
I'm not sure of the problem: Replace your initializer code with this: ENV['REDIS_PROVIDER'] = 'REDISCLOUD_URL' if ENV['REDISCLOUD_URL']
Sidekiq.configure_server do |config|
Rails.logger.formatter = Sidekiq::Logging.logger.formatter
end
Sidekiq::Extensions.enable_delay! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am working on Rails on rails application that has a version
Now I am upgrading it to Rails 5 with version
I have the following code in sidekiq file config/initializers/sidekiq.rb
But I am getting an error on staging environment
NameError: uninitialized constant Sidekiq::Extensions::DelayedModelwhen any.delaymethod called from a specific code file or from callbacks (existing code)I have tried to change
.delayin some parts of the code toperform_ayncbut getting the same errorAnd also I find it weird that when I retry all the jobs manually from the staging rails console or staging sidekiq web the job got executed without any error.
On the Local machine, everything is working fine even though I connected the staging environment on local and it also looks fine
Please refer below screenshot
before retryafter manual retryBeta Was this translation helpful? Give feedback.
All reactions