Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
3 Odpowiedzi
11283 Widoki

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    

Awatar
Odrzuć
Najlepsza odpowiedź

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

Awatar
Odrzuć
Najlepsza odpowiedź

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.




Awatar
Odrzuć
Najlepsza odpowiedź

Hi  Novan Firmansyah,

You can achieve that by using free module of Job Queue

Thanks.

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
0
mar 15
5913
1
paź 23
8354
1
maj 22
4911
0
gru 21
35
2
wrz 21
3947