On Thursday, May 14, 2015 at 2:45:52 PM UTC-5, Trevor Vaughan wrote:
>
> Hmm....what about a concept of deferred actions?
>
> I.e. Try this resource, can't do it, shove it (and it's dependencies) to 
> the bottom of the stack and do everything else, then come back to it.
>


Yes.  If there's a resource that depends on some piece of machine state 
that is asynchronous with respect to catalog application, then doing 
*anything* productive while waiting on that state to change is better than 
doing nothing.  Inasmuch as there may be plenty of other resources that can 
be applied without delay, applying all such resources should be the first 
choice for a time filler.

 

>
> You could even technically have a method for simply backgrounding that 
> entire resource chain.
>


That would be easier if resources reliably formed simple chains.  In 
practice, they too often form overlapping trees.  That doesn't make 
backgrounding impossible, but it does complicate things.

The logical extension of backgrounding is full-fledged multi-threaded / 
multi-process catalog application.  In the past I have been rather leery of 
that idea, but I think I'm warming up to it.


John

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-dev/54d7d251-d317-4bae-875f-98b56d172310%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to