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

hub: make Task.save() atomic #221

Merged
merged 2 commits into from
Aug 27, 2023

Conversation

lzaoral
Copy link
Contributor

@lzaoral lzaoral commented Aug 23, 2023

... to ensure that the db operation is atomic.

Fixes: c5d7f8e ("Fix calculating the number of task's subtasks in new Django versions")
Related: #217 (comment)

kobo/hub/models.py Show resolved Hide resolved
... to ensure that the db operation is atomic.

Fixes: c5d7f8e ("Fix calculating the number of task's subtasks in new Django versions")
Related: release-engineering#217 (comment)
... to ensure that the task and its parent are updated atomically.
@lzaoral lzaoral changed the title hub: do not call save twice in Task.save() hub: make Task.save() atomic Aug 24, 2023
@rohanpm rohanpm merged commit 8a704d5 into release-engineering:master Aug 27, 2023
15 checks passed
@lzaoral lzaoral deleted the hub-tasks-single-save branch August 28, 2023 08:01
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