Knowing the algorithm is not going to help anyone to understand it as 
there are too many "variable issues".

The algorithm is simple: every attempt is made to converge variables 
based on knowledge of defined classes,
whenever they are encountered in a scheduled promise, going around up to 
three times to resolve missing references.
This is order dependent since a circular dependency has to start from 
somewhere, so we choose the order the promises
are defined.

On 07/31/2012 07:49 PM, Diego Zamboni wrote:
> Hi Neil,
>
>> I've learned something new today. Now I had a question. If agent 
>> re-evaluates vars and classes more than in the normal ordering of other 
>> promise types then what is the algorithm? How can we mortals similate in our 
>> minds what the agent will do?
> I honestly don't know the details of the algorithm - I have not read the code 
> in such detail. AFAIK, this should be the only special case. It should 
> probably be more prominently mentioned in the documentation.
>
> Maybe one of the developers wants to pitch in and clarify about this topic?
>
> --Diego
>
> _______________________________________________
> Help-cfengine mailing list
> Help-cfengine@cfengine.org
> https://cfengine.org/mailman/listinfo/help-cfengine

-- 

CTO and Founder
CFEngine

http://www.cfengine.com
http://www.markburgess.org
Twitter: @markburgess_osl, @CFEngine_news

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

Reply via email to