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

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.
 


 

 

Ảnh đại diện
Huỷ bỏ
Tác giả

i guess no one uses cron jobs in this lovely software

Tác giả Câu trả lời hay nhất

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

Ảnh đại diện
Huỷ bỏ

worked for me thanks :)

Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 5 18
3878
1
thg 4 15
8098
3
thg 5 24
148981
1
thg 11 22
3445
0
thg 6 21
6010