<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<p dir="ltr">Hey Casey,</p>
<p dir="ltr">They are all retried using the same policy.<br>
<br>
</p>
<p dir="ltr">The constants that control the delay are here:<br>
<a href="https://github.com/juju/juju/blob/master/apiserver/retrystrategy/retrystrategy.go#L21">https://github.com/juju/juju/blob/master/apiserver/retrystrategy/retrystrategy.go#L21</a></p>
<p dir="ltr"><!-- tmjah_g_1299s -->Basically it's an exponential backoff with a factor of 2 that starts at 5 seconds and has a maximum of 5 minutes, so 5, 10, 20...up to 300 seconds.</p>
<p dir="ltr">Iirc attempting a manual retry will reset this timer. It also never gives up.</p>
<p dir="ltr">Cheers,<br>
Bogdan<!-- tmjah_g_1299e --><br>
</p>
<div class="gmail_quote">On Jun 30, 2016, at 6:52 PM, Casey Marshall <<a href="mailto:casey.marshall@canonical.com" target="_blank">casey.marshall@canonical.com</a>> wrote:
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div dir="ltr">What is the intended behavior for automatic hook retries in Juju 2.0?
<div><br>
</div>
<div>Specifically, I'd like to know, as a Juju user:</div>
<div><br>
</div>
<div>Are errors in hooks all retried with the same policy, or are some retried with a different policy / strategy than others (install, for example)?</div>
<div><br>
</div>
<div>Is there a limit to the number of times Juju will retry a hook error before "giving up"?<br>
</div>
<div><br>
</div>
<div>What kind of delay can I expect between retries?</div>
<div><br>
</div>
<div>Thanks,</div>
<div>Casey</div>
</div>
</blockquote>
</div>
</body>
</html>