mirror of
https://github.com/odoo/runbot.git
synced 2025-03-25 20:35:52 +07:00

When an fw batch fails, log a message to its chatter (so the reason for the failure doesn't necessarily have to be hunted down in the logs, although depending on the quality of the error that might still be an issue). Also if a batch keeps failing (fails for more than a day at a retry every hour -- increased from a previous 30mn), stop retrying it and flag it in the list view, it's clearly not going to go through. This is because we hit an issue with a completion fw batch created on January 27th which kept failing until it was deleted on February 10th. Thankfully it failed on `git push` and git operations apparently are not rate limited at all, but still it's not great stewartship to keep trying a forwardport which keeps failing. Retrying in case of transient failure makes sense, but after 24 attempts over a day it's either not transient, or it's not working because github is down and hammering it won't help.
59 lines
2.2 KiB
XML
59 lines
2.2 KiB
XML
<odoo>
|
|
<record id="action_forward_port" model="ir.actions.act_window">
|
|
<field name="name">Forward port batches</field>
|
|
<field name="res_model">forwardport.batches</field>
|
|
<field name="context">{'active_test': False}</field>
|
|
</record>
|
|
<record id="tree_forward_port" model="ir.ui.view">
|
|
<field name="name">Forward port batches</field>
|
|
<field name="model">forwardport.batches</field>
|
|
<field name="arch" type="xml">
|
|
<tree decoration-danger="cannot_apply">
|
|
<field name="cannot_apply" column_invisible="1"/>
|
|
<field name="source"/>
|
|
<field name="batch_id"/>
|
|
<field name="retry_after_relative" string="Retry In"/>
|
|
</tree>
|
|
</field>
|
|
</record>
|
|
<record id="form_forward_port" model="ir.ui.view">
|
|
<field name="name">Forward port batch</field>
|
|
<field name="model">forwardport.batches</field>
|
|
<field name="arch" type="xml">
|
|
<form>
|
|
<group>
|
|
<group>
|
|
<field name="source"/>
|
|
<field name="batch_id"/>
|
|
</group>
|
|
<group>
|
|
<field name="retry_after"/>
|
|
</group>
|
|
</group>
|
|
</form>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="action_followup_updates" model="ir.actions.act_window">
|
|
<field name="name">Followup Updates</field>
|
|
<field name="res_model">forwardport.updates</field>
|
|
</record>
|
|
<record id="tree_followup_updates" model="ir.ui.view">
|
|
<field name="name">Followup Updates</field>
|
|
<field name="model">forwardport.updates</field>
|
|
<field name="arch" type="xml">
|
|
<tree editable="bottom">
|
|
<field name="original_root"/>
|
|
<field name="new_root"/>
|
|
</tree>
|
|
</field>
|
|
</record>
|
|
|
|
<menuitem name="Forward Port Batches" id="menu_forward_port"
|
|
parent="runbot_merge.menu_queues"
|
|
action="action_forward_port"/>
|
|
<menuitem name="Followup Updates" id="menu_followup"
|
|
parent="runbot_merge.menu_queues"
|
|
action="action_followup_updates"/>
|
|
</odoo>
|