-
-
Notifications
You must be signed in to change notification settings - Fork 460
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Alexandre Fayolle <[email protected]>
- Loading branch information
1 parent
6dbcf6b
commit 3a5afc2
Showing
1 changed file
with
11 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
Odoo treats task synchronously, like when you import a list of products it will treat each line in one big task. | ||
"Queue job" gives you the ability to details big tasks in many smalls. | ||
"Queue job" gives you the ability to detail big tasks in many smaller ones. | ||
|
||
Imagine you have a lot of data to change for thousand orders, you can do it in one step and required a load to the server, this may affect the performance of Odoo. With queue_job you can divide the work in jobs and run thousand jobs (one job for each orders). | ||
An other benefit is if one line failed it don't bloc the other, the jobs are independent. | ||
Plus you Can schedule the jobs and set a number of retry. | ||
Imagine you have a lot of data to change for thousand orders, you can do it in one step and cause a heavy load on the server, and this may affect the performance of Odoo. With queue_job you can divide the work in jobs and run thousand jobs (one job for each orders). | ||
An other benefit is if one line failed it doesn't block the processing of the others, as the jobs are independent. | ||
Plus you can schedule the jobs and set a number of retries. | ||
|
||
This some community usage exemple: | ||
Here are some community usage examples: | ||
|
||
* Mass sending invoice: [account_invoice_mass_sending](https://github.com/OCA/account-invoicing/tree/16.0/account_invoice_mass_sending) | ||
* Import file in the background: [base_import_async](https://github.com/OCA/queue/tree/16.0/base_import_async) | ||
* Export data in the background: [base_export_async](https://github.com/OCA/queue/tree/16.0/base_export_async) | ||
* Generate contract invoice with jobs: [contract_queue_job](https://github.com/OCA/contract/tree/16.0/contract_queue_job) | ||
* Generate partner invoice with jobs:[partner_invoicing_mode](https://github.com/OCA/account-invoicing/tree/16.0/partner_invoicing_mode) | ||
* Process the Sales Automatic Workflow actions with jobs: [sale_automatic_workflow_job](https://github.com/OCA/sale-workflow/tree/16.0/sale_automatic_workflow_job) | ||
* Mass sending invoices: [account_invoice_mass_sending](https://github.com/OCA/account-invoicing/tree/17.0/account_invoice_mass_sending) | ||
* Import data in the background: [base_import_async](https://github.com/OCA/queue/tree/17.0/base_import_async) | ||
* Export data in the background: [base_export_async](https://github.com/OCA/queue/tree/17.0/base_export_async) | ||
* Generate contract invoices with jobs: [contract_queue_job](https://github.com/OCA/contract/tree/17.0/contract_queue_job) | ||
* Generate partner invoices with jobs:[partner_invoicing_mode](https://github.com/OCA/account-invoicing/tree/17.0/partner_invoicing_mode) | ||
* Process the Sales Automatic Workflow actions with jobs: [sale_automatic_workflow_job](https://github.com/OCA/sale-workflow/tree/17.0/sale_automatic_workflow_job) |