Skip to Content
मेन्यू
This question has been flagged
1 Reply
10898 Views

I need run some task in odoo every few seconds, I know how to create a cron but I can not see anything about executing in less than a minute.

Odoo 8.

<field name="interval_number">1</field>

<field name="interval_type">minutes</field>(seconds)

Avatar
Discard
Best Answer

interval type is upto minutes. But you can override the _process_job and make the next call as per your need. Here you can a quesry is executing to set the next call and other related params.

cron_cr.execute("UPDATE ir_cron SET nextcall=%s, numbercall=%s"+addsql+" WHERE id=%s",(fields.Datetime.to_string(nextcall.astimezone(pytz.UTC)), numbercall, job['id']))


Avatar
Discard
Related Posts Replies Views Activity
0
जून 16
4224
4
जन॰ 20
10619
0
मार्च 25
1409
0
जन॰ 25
3492
1
जन॰ 24
2498