Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Seeing this error with latest version 4.0.12 #154

Closed
kapso opened this issue Dec 16, 2015 · 12 comments
Closed

Seeing this error with latest version 4.0.12 #154

kapso opened this issue Dec 16, 2015 · 12 comments

Comments

@kapso
Copy link

kapso commented Dec 16, 2015

Seeing this error. This is with sidekiq-4.0.1

Its a standard worker with following options

sidekiq_options queue: :notify,
                  unique: :until_executed

undefined method to_sym' for true:TrueClass`

/app/vendor/bundle/ruby/2.2.0/gems/sidekiq-unique-jobs-4.0.12/lib/sidekiq_unique_jobs/options_with_fallback.rb:25:in `lock_class'
/app/vendor/bundle/ruby/2.2.0/gems/sidekiq-unique-jobs-4.0.12/lib/sidekiq_unique_jobs/options_with_fallback.rb:21:in `lock'
/app/vendor/bundle/ruby/2.2.0/gems/sidekiq-unique-jobs-4.0.12/lib/sidekiq_unique_jobs/server/middleware.rb:16:in `call'
/app/vendor/bundle/ruby/2.2.0/gems/sidekiq-4.0.1/lib/sidekiq/middleware/chain.rb:129:in `block in invoke'
/app/vendor/bundle/ruby/2.2.0/gems/sidekiq-statistic-1.2.0/lib/sidekiq/statistic/middleware.rb:10:in `call'
/app/vendor/bundle/ruby/2.2.0/gems/sidekiq-4.0.1/lib/sidekiq/middleware/chain.rb:129:in `block in invoke'
/app/vendor/bundle/ruby/2.2.0/gems/sidekiq-4.0.1/lib/sidekiq/middleware/server/active_record.rb:6:in `call'
/app/vendor/bundle/ruby/2.2.0/gems/sidekiq-4.0.1/lib/sidekiq/middleware/chain.rb:129:in `block in invoke'
/app/vendor/bundle/ruby/2.2.0/gems/sidekiq-4.0.1/lib/sidekiq/middleware/server/retry_jobs.rb:74:in `call'
/app/vendor/bundle/ruby/2.2.0/gems/sidekiq-4.0.1/lib/sidekiq/middleware/chain.rb:129:in `block in invoke'
/app/vendor/bundle/ruby/2.2.0/gems/sidekiq-failures-0.4.5/lib/sidekiq/failures/middleware.rb:9:in `call'
/app/vendor/bundle/ruby/2.2.0/gems/sidekiq-4.0.1/lib/sidekiq/middleware/chain.rb:129:in `block in invoke'
/app/vendor/bundle/ruby/2.2.0/gems/sidekiq-4.0.1/lib/sidekiq/middleware/server/logging.rb:11:in `block in call'
/app/vendor/bundle/ruby/2.2.0/gems/sidekiq-4.0.1/lib/sidekiq/logging.rb:30:in `with_context'
/app/vendor/bundle/ruby/2.2.0/gems/sidekiq-4.0.1/lib/sidekiq/middleware/server/logging.rb:7:in `call'
/app/vendor/bundle/ruby/2.2.0/gems/sidekiq-4.0.1/lib/sidekiq/middleware/chain.rb:129:in `block in invoke'
/app/vendor/bundle/ruby/2.2.0/gems/sidekiq-4.0.1/lib/sidekiq/middleware/chain.rb:132:in `call'
/app/vendor/bundle/ruby/2.2.0/gems/sidekiq-4.0.1/lib/sidekiq/middleware/chain.rb:132:in `invoke'
/app/vendor/bundle/ruby/2.2.0/gems/sidekiq-4.0.1/lib/sidekiq/processor.rb:127:in `block in process'
/app/vendor/bundle/ruby/2.2.0/gems/sidekiq-4.0.1/lib/sidekiq/processor.rb:166:in `stats'
/app/vendor/bundle/ruby/2.2.0/gems/sidekiq-4.0.1/lib/sidekiq/processor.rb:126:in `process'
/app/vendor/bundle/ruby/2.2.0/gems/sidekiq-4.0.1/lib/sidekiq/processor.rb:79:in `process_one'
/app/vendor/bundle/ruby/2.2.0/gems/sidekiq-4.0.1/lib/sidekiq/processor.rb:67:in `run'
/app/vendor/bundle/ruby/2.2.0/gems/sidekiq-4.0.1/lib/sidekiq/util.rb:16:in `watchdog'
/app/vendor/bundle/ruby/2.2.0/gems/sidekiq-4.0.1/lib/sidekiq/util.rb:24:in `block in safe_thread'
@mhenrixon
Copy link
Owner

Give me a few minutes and I'll have that fixed. You are upgrading from 3.x right?

@kapso
Copy link
Author

kapso commented Dec 16, 2015

Yes

@mhenrixon
Copy link
Owner

Does the console or output have something like unique: true is no longer valid. Please set it to the type of lock required like: "unique: :until_executed"

@kapso
Copy link
Author

kapso commented Dec 16, 2015

Not sure, this is on prod, so detailed logs are switched off.

@mhenrixon
Copy link
Owner

This should be a warning

@kapso
Copy link
Author

kapso commented Dec 16, 2015

Searched papertrail/logs, found nothing.

@mhenrixon
Copy link
Owner

Thanks that helps a lot

@mhenrixon
Copy link
Owner

How is your configuration? Could you post your SidekiqUniqueJobs.configure do |config|?

@mhenrixon
Copy link
Owner

Or the output of SidekiqUniqueJobs.default_lock would help

@mhenrixon
Copy link
Owner

Try v4.0.13

@kapso
Copy link
Author

kapso commented Dec 16, 2015

@mhenrixon looks like 4.0.13 has been pulled out, dont see it here https://rubygems.org/gems/sidekiq-unique-jobs

@mhenrixon
Copy link
Owner

Ah sorry I bumped and tagged it but forgot to release. Done now!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants