Skip to content

[18][IMP] attachment_queue: Refactore failure management - #3876

Open
florian-dacosta wants to merge 2 commits into
OCA:18.0from
akretion:18.0-attachment-queue-failure-refactore
Open

florian-dacosta wants to merge 2 commits into
OCA:18.0from
akretion:18.0-attachment-queue-failure-refactore

Conversation

@florian-dacosta

@florian-dacosta florian-dacosta commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Forward port of #3875

This small refactore serves 2 goals:
Remove the explicit commit in attachment.queue._run making #3577 not needed anymore
Avoid spaming the emails to notify in case of failure, when the error will be retried (TimeoutError in attachment_synchronize for instance). The notification is only set if the job fails after the max number of retry.

Replace #3578

In case of retryable errors, we leave the job set the failed state + the mail notification. This allow to avoid false positive (notifying an error that will be retried) + remove commit during job which is not allowed in standard use case

(cherry picked from commit f2a7b73)
@OCA-git-bot

Copy link
Copy Markdown
Contributor

Hi @sebastienbeau, @GSLabIt, @bealdav,
some modules you are maintaining are being modified, check this out!

@OCA-git-bot OCA-git-bot added series:18.0 mod:attachment_queue Module attachment_queue mod:attachment_synchronize Module attachment_synchronize labels Nov 23, 2026
@florian-dacosta
florian-dacosta force-pushed the 18.0-attachment-queue-failure-refactore branch from 6d9b8ac to 133ff7a Compare November 23, 2026 16:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

mod:attachment_queue Module attachment_queue mod:attachment_synchronize Module attachment_synchronize series:18.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants