تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
3 الردود
11309 أدوات العرض

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.

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
0
مارس 15
5936
1
أكتوبر 23
8371
1
مايو 22
4932
0
ديسمبر 21
35
2
سبتمبر 21
3962