Storage File Swap Backend Queue

storage_file_swap_backend_queue
REPOSITORY
REPOSITORYOCA/storage
GIT
GIThttps://github.com/OCA/storage.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/storage/tree/18.0/storage_file_swap_backend_queue
VERSION
VERSION 1.1.0
CATEGORY
CATEGORYStorage
LICENSE
LICENSELGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Camptocamp
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Camptocamp
COMMITTERS
COMMITTERSWeblate, OCA-git-bot, Simone Orsi, oca-ci
WEBSITE
WEBSITEhttps://github.com/OCA/storage
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 19:30:15
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/connector:
    - component
OCA/queue:
    - queue_job
OCA/server-env:
    - server_environment
OCA/storage:
    - storage_file
    - storage_backend
odoo/odoo:
    - base
    - base_sparse_field
    - mail
    - base_setup
    - web
    - bus
    - web_tour
    - html_editor
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES python_slugify
cachetools
requests
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
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 IDNameModelTypeStatus
storage_backend_view_form storage.backend field Inherits storage_file.storage_backend_view_form
storage_file_swap_backend_view_form storage.file.swap.backend field Inherits storage_file.storage_file_swap_backend_view_form
Models touched (3)

New fields (1)
  • swap_backend_use_queue Boolean
    default=False help='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'
Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (1)
  • use_queue Boolean
    related='source_backend_id.swap_backend_use_queue' string='Use Queue Jobs'
Public methods (0)

No public methods.