Skip to content

PQsocket() can't get socket descriptor (PG::ConnectionBad) locker error #414

@k1r8r0wn

Description

@k1r8r0wn

Hey there, I'm periodically getting this:

Que 2.3.0 started worker process with:  Worker threads: 2 (priorities: any, any)  Buffer size: 8  Queues:    - default (poll interval: 5s)Que waiting for jobs...#<Thread:0x00007fcbdf582598 /usr/src/app/vendor/cache/ruby/3.2.0/gems/que-2.3.0/lib/que/locker.rb:179 run> terminated with exception (report_on_exception is true):/usr/src/app/vendor/cache/ruby/3.2.0/gems/que-2.3.0/lib/que/connection.rb:63:in `exec': PQsocket() can't get socket descriptor (PG::ConnectionBad)

As I see the locker file code doesn't have the re-start logic on errors (and also there is no way to put such logs to the default logger, cause it's another locker-process).

So the k8s pod always restarts...

Any thoughts or suggestions?

Much appreciated in advance!

P.S. Also I'm using the que-scheduler gem & have one job in schedule for test purposes & have Sequel as ORM.

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