Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
3 ตอบกลับ
11455 มุมมอง

I knew I can achieve this using a cron, and check record that newly created/writed,  but my question is 

"is base.action.rule run asynchronously?"

like event-driven non blocking coding?


thank you in advance    

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Waiting for IO is exactly where you gain from async... it's the whole point of it

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

odoo don't implement async or event-driven driven functionality even it's available in python3. and It will not implement in the near future.
we could inject any async function in sequential style coding you have to change the whole codebase for it and for odoo mostly waiting for database IO so didn't get much gain using async implementation.

actually cron job is not executed asynchronously but it's run on separated thread/process so it does not block any main thread/process which are handling HTTP request.




อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Hi  Novan Firmansyah,

You can achieve that by using free module of Job Queue

Thanks.

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
0
มี.ค. 15
6030
1
ต.ค. 23
8489
1
พ.ค. 22
5050
0
ธ.ค. 21
35
2
ก.ย. 21
4168