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

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.
 


 

 

อวตาร
ละทิ้ง
ผู้เขียน

i guess no one uses cron jobs in this lovely software

ผู้เขียน คำตอบที่ดีที่สุด

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()

อวตาร
ละทิ้ง

worked for me thanks :)

Related Posts ตอบกลับ มุมมอง กิจกรรม
0
พ.ค. 18
3880
Cron function messing argument!! แก้ไขแล้ว
1
เม.ย. 15
8104
Timeout error with nginx แก้ไขแล้ว
3
พ.ค. 24
148984
1
พ.ย. 22
3447
0
มิ.ย. 21
6011