Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
3 Trả lời
11400 Lượt xem

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    

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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.




Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Hi  Novan Firmansyah,

You can achieve that by using free module of Job Queue

Thanks.

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 3 15
5984
1
thg 10 23
8456
1
thg 5 22
4992
0
thg 12 21
35
2
thg 9 21
4072