Skip to content

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

@mmarvb8h

Description

@mmarvb8h

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
marvin.foster@gmail.com or mmarvb7@gmail.com

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions