Skip to content

[16.0] [IMP] fs_attachment_s3: Optimize clean up storages using mass deletion#615

Merged
OCA-git-bot merged 3 commits into
OCA:16.0from
acsone:16.0-imp-fs_attachment_s3-lmi
Jun 24, 2026
Merged

[16.0] [IMP] fs_attachment_s3: Optimize clean up storages using mass deletion#615
OCA-git-bot merged 3 commits into
OCA:16.0from
acsone:16.0-imp-fs_attachment_s3-lmi

Conversation

@lmignon

@lmignon lmignon commented May 26, 2026

Copy link
Copy Markdown
Contributor

@lmignon lmignon force-pushed the 16.0-imp-fs_attachment_s3-lmi branch from 7fadedc to 4c32942 Compare June 23, 2026 12:11
Antoni Marroig Campomar and others added 3 commits June 24, 2026 11:13
More code shared with base implementation to list files
s3fs uses aiobotocore as s3 client, which is asynchronous, but Odoo does
not support async calls, therefore the call to delete objects from S3 was
not working. The fsspec library provides a way to run async calls in a
synchronous way. The fsspec.asyn.sync function is now used to run the async
call to delete objects from S3, in a synchronous way, in order to make it
work in Odoo.
@lmignon lmignon force-pushed the 16.0-imp-fs_attachment_s3-lmi branch from 4c32942 to fa66325 Compare June 24, 2026 09:13
@lmignon

lmignon commented Jun 24, 2026

Copy link
Copy Markdown
Contributor Author

this one run in production without issue... merging....

@lmignon

lmignon commented Jun 24, 2026

Copy link
Copy Markdown
Contributor Author

/ocabot merge minor

@OCA-git-bot

Copy link
Copy Markdown
Contributor

Hey, thanks for contributing! Proceeding to merge this for you.
Prepared branch 16.0-ocabot-merge-pr-615-by-lmignon-bump-minor, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit df900f4 into OCA:16.0 Jun 24, 2026
5 of 7 checks passed
@OCA-git-bot

Copy link
Copy Markdown
Contributor

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

@lmignon lmignon deleted the 16.0-imp-fs_attachment_s3-lmi branch June 24, 2026 09:27
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.

2 participants