TIP: You can type at any time to perform a new search.
Storage File Swap Backend Queue
storage_file_swap_backend_queue · OCA/storage
- Repository
- OCA/storage · module folder · Try on Runboat
- Module version
- 1.1.0
- Category
- Storage
- Folder size
- 0.04 MB
- License
- LGPL-3
- Application
- No
- Auto-installable
- No
- Website
- https://github.com/OCA/storage
- Last tracking update
- 2026-08-07 08:42:56
- Authors
- Camptocamp, Odoo Community Association (OCA)
- Maintainers
- Camptocamp, Odoo Community Association (OCA)
- Committers
- Simone Orsi, Weblate, OCA-git-bot, oca-ci
- Odoo dependencies
- Python dependencies
- python_slugify, cachetools, requests
- System dependencies
- None
- Required by
- None
- Description
This module integrates `storage_file` with `queue_job` to delegate the backend swap operation to asynchronous jobs. When swapping files between storage backends via the wizard, the operation is split into batches and dispatched as queue jobs instead of running synchronously. This avoids timeouts when moving large numbers of files.
Code Analysis ⓘ
Views touched (2)
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
storage_backend_view_form |
storage.backend | form | Inherits storage_file.storage_backend_view_form | |
storage_file_swap_backend_view_form |
storage.file.swap.backend | form | Inherits storage_file.storage_file_swap_backend_view_form |
HTTP endpoints (0)
No HTTP endpoints found for this module.
Models touched (3)
New fields (1)
-
swap_backend_use_queueBooleandefault=Falsehelp='When enabled, swapping files to/from this backend will be dispatched as asynchronous queue jobs instead of running synchronously.'string='Use Queue for Backend Swap'
No public methods.
New fields (0)
No new fields.
Public methods (0)No public methods.
New fields (1)
-
use_queueBooleanrelated='source_backend_id.swap_backend_use_queue'string='Use Queue Jobs'
No public methods.