From: "Bryan Blevins" <bblevins@(email surpressed)>
Subject: Re: How do I submit jobs with a staggered start?
   Date: Sun, 23 Oct 2005 16:30:59 -0700
Msg# 1066
View Complete Thread (4 articles) | All Threads
Last Next
Thanks for the response.  I'm intrigued by the sleep in blocks suggestion. 
As I'm not a programmer/scripter type, how do I go about adding that bit 
when I submit a job?  I tried a simple cut and paste into the 'submit 
options' area of our Maya submit script, but just get an error.

I've forwarded your response to our IT supervisor, Jason in hopes that he 
knows what to do, but if it is simple enough I'd like to add it to my job 
submits now.

>
> You can add some stagger code to your submit script so that it
> sleeps a little before starting the render.
>
> I'd recommend making the amount of sleep time a function of the
> frame number, with a cut off above a certain frame number, though
> just as easily it could be some random value.
>
> For instance, if you want the first 20 frames to have increasingly
> longer sleep times, you could add these lines to the -render section
> of the script:
>
> ----
> if ( $ENV{RUSH_FRAME} < 50 )
>     { sleep($ENV{RUSH_FRAME} * 2); }
> ----
>
> ..which will cause frame 1 to sleep 2 seconds, frame 2 to sleep 4 secs,
> frame 10 to sleep 20 seconds, etc.
>
> Or, you can have frames sleep in blocks:
>
> ----
> if ( $ENV{RUSH_FRAME} < 50 )
>     { sleep( int( $ENV{RUSH_FRAME} / 10 ) * 30 ); }
> ----
>
> ..where frames 1-9 won't sleep at all, 10-19 will sleep 30 secs,
> 20-29 will sleep 60 seconds, etc.
>



Last Next