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

I'm running a cron task to compute some prices. This task is run into it's own thread via ir.cron

For developing purposes, I need to kill/restart the server and since there is no proper way to kill the running thread, is there a variable somewhere to know if the server is down/stopped ?

I would use this variable to stop my computation and terminate the thread.

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

You could do something like

ps aux | grep odoo

Or check whether the Odoo port 8079 is busy, Or are you looking for something like a lock-file?

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

not sure if this is what you require

$ sudo /etc/init.d/odoo status

อวตาร
ละทิ้ง