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

Allow using worker_read_action for locking before processing the job #3

Merged
merged 1 commit into from
Jul 20, 2023

Conversation

smt116
Copy link
Contributor

@smt116 smt116 commented Jul 20, 2023

It fixes the problem with PostgreSQL being unable to lock a record in a case when given read_action includes distinct statement. It fails because database engine is not capable of locking "for update" when providing distinct.

Contributor checklist

  • Bug fixes include regression tests
  • Features include unit/acceptance tests

It fixes the problem with PostgreSQL being unable to lock a record in
a case when given `read_action` includes `distinct` statement. It fails
because database engine is not capable of locking "for update" when
providing `distinct`.
@zachdaniel zachdaniel merged commit 3876b9c into ash-project:main Jul 20, 2023
1 check failed
@zachdaniel
Copy link
Contributor

🚀Thank you for your contribution!🚀

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.

2 participants