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

Hi !

Sometimes, cron jobs are running twice, or more at the same time, example output (from _logger.info function):

2014-05-22 00:00:25,681 1262 INFO mydb openerp.addons.myaddon.myobject: Starting cron jobs for My Partner ...
2014-05-22 00:00:25,683 1262 INFO mydb openerp.addons.myaddon.otherobject.otherobject: Checking file Stock X ...
2014-05-22 00:00:31,360 1262 INFO mydb openerp.addons.myaddon.myobject: Starting cron jobs for My Partner ...
2014-05-22 00:00:31,363 1262 INFO mydb openerp.addons.myaddon.otherobject.otherobject: Checking file Stock X ...

This time the job was running twice, but I've seen worse scenarios.

Does someone have a solution ?

Thanks.

Edit:

@Thierry Godin: Only one openerp process, but several postgres process, is that ok ?

That seems to work properly now. I'll come back if the issue appear again. I've another issue to fix ^^

FIXED:

In fact, there was three ir.cron records in the database with the same name, the same function, but different creation dates. So now I know where is the problem.

อวตาร
ละทิ้ง
ผู้เขียน คำตอบที่ดีที่สุด

FIXED:

In fact, there was three ir.cron records in the database with the same name, the same function, but different creation dates. So now I know where is the problem.

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

Hello,

Ensure only one instance of OpenERP is running at the same time on the machine (killall + restart)

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
1
ม.ค. 24
3436
0
เม.ย. 22
4728
0
ม.ค. 17
4950
0
ธ.ค. 15
3487
0
ธ.ค. 15
5227