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

Extract the call to podcast publish to a job #788

Merged
merged 2 commits into from
Aug 16, 2023

Conversation

svevang
Copy link
Member

@svevang svevang commented Aug 16, 2023

In the case where we have a transaction block calling Podcast#publish!, we can have dirty reads from other threads outside of the transaction. This PR wraps the manipulation of the partitioned concurrency publishing queues in another async job invocation. This way, the database sessions outside of the authoring transactions can see the new state of the publishing queues.

@svevang svevang requested a review from cavis August 16, 2023 20:01
Copy link
Member

@cavis cavis left a comment

Choose a reason for hiding this comment

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

👍

@svevang svevang merged commit dc48f6d into main Aug 16, 2023
1 check passed
@svevang svevang deleted the publishing-state-is-outside-transactional-isolation branch August 16, 2023 21:43
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