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)
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
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)
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']))
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign upRelated Posts | Replies | Views | Activity | |
---|---|---|---|---|
|
0
Jun 16
|
3484 | ||
|
4
Jan 20
|
9737 | ||
|
1
Jan 24
|
584 | ||
|
1
Aug 23
|
12549 | ||
change password
Solved
|
|
1
Aug 23
|
11054 |