Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

[SOLVED] How to fix cron jobs running multiple times ?

By
PY
on 5/22/14, 4:19 AM 3,702 views

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.

0
PY
On 5/23/14, 4:21 AM

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.

1

Thierry Godin

--Thierry Godin--
1516
| 8 7 8
Collegien, France
--Thierry Godin--

..

Thierry Godin
On 5/22/14, 8:08 AM

Hello,

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

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

3 follower(s)

Stats

Asked: 5/22/14, 4:19 AM
Seen: 3702 times
Last updated: 3/16/15, 8:10 AM