I can see the advantage to using a persistent class in this case.  It 
allows you to have different timeouts for different events.  If the wget 
fails, the "I failed to wget" class can have no persistence (so the next 
5-minute run will try again) while the "I was able to wget" class may 
have a persistence of several hours (and maybe a splayclass as well) to 
prevent hammering the target server.

Paul Krizak                         7171 Southwest Pkwy MS B200.3A
MTS Systems Engineer                Austin, TX  78735
Advanced Micro Devices              Desk:  (512) 602-8775
Linux/Unix Systems Engineering      Cell:  (512) 791-0686
Global IT Infrastructure            Fax:   (512) 602-0468

On 09/13/10 13:10, no-re...@cfengine.com wrote:
> Forum: Cfengine Help Subject: Re: Persistent classes Author:
> neilhwatson Link to topic:
> https://cfengine.com/forum/read.php?3,18183,18206#msg-18206
>
> Persistence for the sake of it.  I can't argue that.  Perhaps attempt
> the wget command, and upon failure set a persistent class.  However,
> I can't see much benefit to this versus using ifelapsed to limit my
> wget promise to once every four hours.
>
> _______________________________________________ Help-cfengine mailing
> list Help-cfengine@cfengine.org
> https://cfengine.org/mailman/listinfo/help-cfengine
>

_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to