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

After odoo v7 cron workers spawn automatically when openerp starts so everything is fine if i start openerp as a service or with ./openerp-server command from terminal but when i start it as a uwsgi application none of my cron jobs work, so i assume uwsgi application can't spawn cron workers.


Has anyone encountered such a problem before? I searched everywhere and the only answer is adding "import cron" and cron.start_services() to wsgi.py which only works on odoo v7, on v8 there is no cron.py inside the odoo.

Any help is 
appreciated.
 


 

 

Awatar
Odrzuć
Autor

i guess no one uses cron jobs in this lovely software

Autor Najlepsza odpowiedź

Looks like you need to add these lines to your wsgi-file in order to make cron jobs work

from openerp.service.server import ThreadedServer
 

and after the "openerp.service.server.load_server_wide_modules()"


ThreadedServer(None).cron_spawn()

Awatar
Odrzuć

worked for me thanks :)

Powiązane posty Odpowiedzi Widoki Czynność
0
maj 18
3835
1
kwi 15
8071
3
maj 24
148943
1
lis 22
3401
0
cze 21
5955