Can we run multiple crons at a time in Odoo?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Contabilidad
- Inventario
- PoS
- Project
- MRP
Se marcó esta pregunta
2
Respuestas
4063
Vistas
Can we run multiple crons at a time in Odoo?
Yes, in Odoo, it is possible to run multiple cron jobs simultaneously. Odoo's cron system is designed to handle multiple cron jobs running concurrently.
For example, let's say you have two cron jobs defined in your Odoo module:
- Job A: Scheduled to run every hour using a cron expression of 0 * * * *.
- Job B: Scheduled to run every day at midnight using a cron expression of 0 0 * * *.
In this case, Job A will run every hour, and Job B will run once every day at midnight. Since their schedules do not overlap, they can run concurrently without any issues.
However, if two cron jobs have the same cron expression and are scheduled to run at the same time, Odoo will run them sequentially, one after the other. Odoo ensures that the jobs do not run concurrently to prevent any conflicts or concurrency-related issues.
Hi Guiles,
Reply : In Odoo, by default, multiple cron jobs can run simultaneously. The Odoo scheduler manages the execution of cron jobs, and it allows multiple cron jobs to be executed concurrently, as long as they meet the conditions specified in their cron expressions.
If multiple cron jobs have overlapping intervals or their conditions are met simultaneously, they will be executed concurrently.
However, please note that concurrent execution of cron jobs can impact system performance, especially if the jobs involve resource-intensive tasks or database operations. Therefore, it's important to design your cron jobs carefully and consider any potential conflicts or performance implications when running multiple cron jobs simultaneously.
Regards,
Ksolves Team!
¿Le interesa esta conversación? ¡Participe en ella!
Cree una cuenta para poder utilizar funciones exclusivas e interactuar con la comunidad.
RegistrarsePublicaciones relacionadas | Respuestas | Vistas | Actividad | |
---|---|---|---|---|
|
1
ene 24
|
2531 | ||
|
0
abr 22
|
4181 | ||
|
0
ene 17
|
4491 | ||
|
0
dic 15
|
4796 | ||
How cron job works in OpenERP ?
Resuelto
|
|
1
sept 15
|
17081 |
Hi,
It is possible to run multiple crons simultaneously in odoo.
Please refer to this forum answer to understand how to do it without having a heavy load on the system.
https://www.odoo.com/forum/help-1/odoo-configuration-for-multiple-cron-jobs-214041
Hope it helps