Skip to content

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

Open
lmignon wants to merge 4 commits into
OCA:16.0from
acsone:16.0-imp-fs_attachment_s3-lmi
Open

[16.0] [IMP] fs_attachment_s3: Optimize clean up storages using mass deletion#615
lmignon wants to merge 4 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

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 7fadedc to 4c32942 Compare June 23, 2026 12:11
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