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

Receive: undefined method `[]' for #<PG::Connection:0x0000000109397ab0... running QueueClassicPlus.migrate #51

Open
mmarvb8h opened this issue Feb 23, 2023 · 1 comment

Comments

@mmarvb8h
Copy link

mmarvb8h commented Feb 23, 2023

Environment:

Mac m1 arm

ruby 3.0.5
Sinatra > 3
Sequel 5.6
pg 1.4
queue_classic_plus 4.0.0.alpha11

I have run and migrated the standard Que_Classic gem. Can submit jobs successfully.

Tried to upgrade to Que_Classic_Plus to get retry functionality.
Backed out previous Que_Classic migration. Instead i run QueueClassicPlus.migrate as follows.

  1. Set environment variable DATABASE_URL properly (same as i did with Que_Classic).
  2. Run QueueClassicPlus.migrate
  3. Receieve the below error.
    /.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/queue_classic-4.0.0/lib/queue_classic/conn_adapter.rb:10:in initialize': undefined method []' for #<PG::Connection:0x0000000109397ab0 host=localhost port=5432 user=xx> (NoMethodError)

Expected.

Migration should run.

Is this because i'm using Sequel and pg instead of ActiveRecord/Rails? Your standard Que_Classic seems to run fine.

~Marvin Foster
[email protected] or [email protected]

@marvin-rfbot
Copy link

marvin-rfbot bot commented Feb 23, 2023

Thanks for opening this issue!

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

1 participant