Skip to content

[16][IMP] attachment_queue: Refactore failure management - #3875

Open
florian-dacosta wants to merge 1 commit into
OCA:16.0from
akretion:16.0-attachment-queue-failure-refactore
Open

florian-dacosta wants to merge 1 commit into
OCA:16.0from
akretion:16.0-attachment-queue-failure-refactore

Conversation

@florian-dacosta

Copy link
Copy Markdown
Contributor

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.

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
@OCA-git-bot

Copy link
Copy Markdown
Contributor

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

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:16.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants