Skip to content

Move GoodJob initialization#5503

Merged
zachmargolis merged 3 commits intomainfrom
margolis-unknown-table-good-job
Oct 15, 2021
Merged

Move GoodJob initialization#5503
zachmargolis merged 3 commits intomainfrom
margolis-unknown-table-good-job

Conversation

@zachmargolis
Copy link
Contributor

  • Hopefully to fix "unknown relation good_jobs" error

- Hopefully to fix "unknown relation good_jobs" error
Comment on lines -10 to -12
# Configure GoodJob even if it's not enabled, to avoid errors if the good_job process is started,
# such as in local development.
GoodJob.active_record_parent_class = 'WorkerJobApplicationRecord'
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

working hypothesis: this initializer is "too late" for this config to be set, it's the one we need for the jobs to look in the right database

Copy link
Contributor

@aduth aduth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unfortunately I could no longer reproduce the original issue on main before trying this branch, but the hypothesis seems sensible enough to me 👍

@zachmargolis zachmargolis merged commit 3181e49 into main Oct 15, 2021
@zachmargolis zachmargolis deleted the margolis-unknown-table-good-job branch October 15, 2021 17:21
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

Successfully merging this pull request may close these issues.

3 participants