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

How cron job works in OpenERP ?

By
Zahin
on 7/5/14, 9:30 AM 4,168 views

Expert please explain how cron jobs works in OpenERP ?

As how it start on server start and stop when server stop !?

Also How internally it maintained ! Like to know its archetecture in short summry.

 

7
Zahin
On 7/16/14, 10:56 AM

Cron jobs scheduling

Cron jobs are defined in the ir_cron table/model. This module deals with all
cron jobs, for all databases of a single OpenERP server instance.

It defines a single master thread that will spawn (a bounded number of)
threads to process individual cron jobs.

The thread runs forever, checking every 60 seconds for new
'database wake-ups'. It maintains a heapq of database wake-ups. At each
wake-up, it will call ir_cron._run_jobs_multithread() for the given database. _run_jobs_multithread
will check the jobs defined in the ir_cron table and spawn accordingly threads
to process them.

This module's behavior depends on the following configuration variable:
openerp.conf.max_cron_threads.

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

1 follower(s)

Stats

Asked: 7/5/14, 9:30 AM
Seen: 4168 times
Last updated: 9/16/15, 8:47 PM