Skip to content

[PR #8384/7eff8568 backport][3.49] Ignore FileNotFoundError when unlinking temp artifact - #8396

Merged
jobselko merged 1 commit into
3.49from
patchback/backports/3.49/7eff85689a5fcf41a25558d30f6237bf25a05fc8/pr-8384
Dec 1, 2026
Merged

jobselko merged 1 commit into
3.49from
patchback/backports/3.49/7eff85689a5fcf41a25558d30f6237bf25a05fc8/pr-8384

Conversation

@patchback

@patchback patchback Bot commented Dec 1, 2026

Copy link
Copy Markdown

This is a backport of PR #8384 as merged into main (7eff856).

During concurrent On Demand downloads, pre_save() may move the temp file to storage before a concurrent DB commit triggers IntegrityError. Suppress FileNotFoundError on os.unlink() so the response completes cleanly instead of aborting the transfer.

Closes #8383

During concurrent On Demand downloads, pre_save() may move the temp
file to storage before a concurrent DB commit triggers IntegrityError.
Suppress FileNotFoundError on os.unlink() so the response completes
cleanly instead of aborting the transfer.

Closes #8383

(cherry picked from commit 7eff856)
@jobselko
jobselko merged commit 3c2816b into 3.49 Dec 1, 2026
25 of 27 checks passed
@jobselko
jobselko deleted the patchback/backports/3.49/7eff85689a5fcf41a25558d30f6237bf25a05fc8/pr-8384 branch December 1, 2026 15:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants