Odoo Help

2

Where is the status of scheduled jobs (ir.cron) logged?

By
NUMERIGRAPHE
on 10/20/14, 5:10 AM 818 views

I'd like to check whether tha latest scheduled jobs were run succesfully or not, where can I see that?

0
SonnyV
On 6/2/15, 8:11 AM

I don't think it's default behaviour for odoo to log the events of the cron tasks.

To see if a cron has been called, you can check the db-table ir_cron and check for the write_date. This field contains the date when the record was last modified.

Another option would be to import logging in your python file where the cron's function is. then instantiate the logger: _logger = logging.getlogger(__name__). To use the logger _logger.debug('myDebugMSG'). When you use this method, you will be able to see if the cron has ran (successfully or not) in your odoo log

About This Community

This platform 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.

Register

Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)

Stats

Asked: 10/20/14, 5:10 AM
Seen: 818 times
Last updated: 6/2/15, 8:11 AM