Skip to Content
Menu
This question has been flagged
2 Replies
2908 Views

starting from this configuration:


odoo.conf:

[options]

 admin_passwd =****

db_host = 127.0.0.1

db_name = false

db_host = False

db_port = False

db_user = user

db_password =*******


addons_path = /addons/path


log_level = info

logfile=/log/path

log_handler = [':INFO']


workers = 6

max_cron_threads = 2

limit_time_real = 120

limit_time_cpu = 60

limit_request = 8192

limit_memory_hard = 1288490188

limit_memory_soft = 2147483648


proxy_mode = True

http_interface = 127.0.0.1


Some of the scheduled tasks do not run. What I am seeing in the logs is that a task is running but at a certain moment Worker (####) timeout is displayed, and the task starts again without allowing the others that are queued not to run. How can i solve this problem
Avatar
Discard
Best Answer

I've just encountered the same issue mate, I'm also running Odoo 8 and you don't have to spawn a second Odoo instance. In fact, when you run in multiprocess, you need to force your CronWorkers to a specific database, so setting the db_name to your database will attach your cron workers to the database :)

Avatar
Discard
Best Answer

Hello Alberto,

You need to run 2 instances of odoo, one for users with worker activated and the other one with http disabled and worker = 1.

For more information see the link below https://www.odoo.com/documentation/11.0/setup/deploy.html#cron-workers


Avatar
Discard