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

[16] attachment synchronize : Improve remote file import management #2923

Merged
merged 1 commit into from May 14, 2024

Conversation

florian-dacosta
Copy link
Contributor

Current problems are the following :

  1. When import multiple files from a remote server, if an error occurs after the first file, we risk loosing data, because, the first file(s) imported could have been deleted/renamed on remote server.
    We need to commit after each imported file to ensure we won't loose any data.

  2. If one import task fails, the whole cron stops. It means if we import files from multiple remote server and the first remote server is unavailable, all import from all remote will be blocked.
    We add a warning in the log if there is a failure for a remote but don't block the rest of the process.

@kevinkhao @bealdav @GSLabIt @sebastienbeau

@OCA-git-bot
Copy link
Contributor

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

…ver :

If one task is failing, keep processing the others
Commit fir attachment imported after each file to be sure not to loose any data, when deleting on remote after import for example
Copy link
Contributor

@kevinkhao kevinkhao left a comment

Choose a reason for hiding this comment

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

Code review
LGTM
Thanks

Copy link
Member

@bealdav bealdav left a comment

Choose a reason for hiding this comment

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

Thanks a lot

@OCA-git-bot
Copy link
Contributor

This PR has the approved label and has been created more than 5 days ago. It should therefore be ready to merge by a maintainer (or a PSC member if the concerned addon has no declared maintainer). 🤖

@bguillot
Copy link
Contributor

/ocabot merge patch

@OCA-git-bot
Copy link
Contributor

What a great day to merge this nice PR. Let's do it!
Prepared branch 16.0-ocabot-merge-pr-2923-by-bguillot-bump-patch, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit 7753304 into OCA:16.0 May 14, 2024
7 checks passed
@OCA-git-bot
Copy link
Contributor

Congratulations, your PR was merged at c6de13f. Thanks a lot for contributing to OCA. ❤️

@bealdav bealdav deleted the 16-task-import-eroor-management branch May 14, 2024 09:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants