I'm not sure how Odoo cron works in this regard. If I have a cron that runs every minute, but the process lasts longer than one minute, what would happen with the next cron call? Will it wait for the first one to finish?
Thanks
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
I'm not sure how Odoo cron works in this regard. If I have a cron that runs every minute, but the process lasts longer than one minute, what would happen with the next cron call? Will it wait for the first one to finish?
Thanks
Hi Edi,
If you are using odoo cron then next cron will execute only after previous one's completion. If you want to run parallel job then you can use connector job functionality of Odoo Connector module. You can download it from
https://apps.odoo.com/apps/modules/8.0/connector/
This module allows you to create job which start as a thread in the Odoo main process.You can also assign priority and execution time to specific job.
Example:
@job def export_one_thing(self, one_thing):
# work
# export one_thing
delayable = env['a.model'].with_delay(priority=30, eta=60*60*5)
delayable.export_one_thing(the_thing_to_export)
# the job will be executed with a low priority and not before a delay of 5 hours from now
Hope this will help you!
Thanks.
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign upRelated Posts | Replies | Views | Activity | |
---|---|---|---|---|
|
0
Aug 22
|
890 | ||
|
1
Jul 22
|
17700 | ||
|
0
Apr 22
|
1604 | ||
|
3
Sep 21
|
1901 | ||
|
2
Sep 21
|
3203 |
No, its not allowed to edit/modify/run the cron which is still executing.