Skip to content

Jobs are not processed in multi schema setup. Apartment + GoodJob ( post 1.1.2 ) #117

Closed
@gadimbaylisahil

Description

Hi, I have an application with multi tenant architecture using PostgreSQL Schemas with the help of Apartment gem.

Prior to 1.1.2(without Listen/Notify), Good Job processed this setup just fine.

After 1.1.2, queried jobs does not own advisory_lock. job.owns_advisory_lock returns false.

I have limited knowledge in this area but tried to debug it for a few days without luck. However, I see that there is TODO
comment in Job.rb which is interesting.

# TODO: Determine why some records are fetched without an advisory lock at all

Can you please provide info on what is happening here or are you still in dark clouds as well regarding this?

I have created an example application here with exact same setup.

Any direction is appreciated, I can debug more 👍

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions