On the stochastic scheduling of a tree