The script phase should have a retry option

Bug #1782380 reported by Laurent Sesquès
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mojo: Continuous Delivery for Juju
Opinion
Wishlist
Unassigned

Bug Description

In order to automate deployments, it would be nice for a script phase to be able to retry.
It can't be implemented in the script which is called, because mojo buffers the output until the command completes.
Here's an MP implementing it:
https://code.launchpad.net/~sajoupa/mojo/script-phase-retry/+merge/349817
I tested very basically. Script with retry works as expected, and verify with retry is still ok (it inherits from script and already had retry implemented).

Related branches

Revision history for this message
Tom Haddon (mthaddon) wrote :

I'm not convinced we actually need this. I suspect most times this can be better expressed with the verify phase for things that need retrying. If there's a compelling reason for it, I could be convinced the other way though.

Changed in mojo:
importance: Undecided → Wishlist
status: New → Opinion
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.