We have a very efficient and elaborate cacing with subprocess. But alas I am on vacation and do not have access to the files.
Sent from my iPhone On 2012-12-07, at 9:03 PM, Sandy Sutherland <[email protected]> wrote: > Hello - it does appear in RR control - it is just like any other job - and it > goes grey when done - we are also logging out so that we can catch errors. > > Attached is a finished bunch of jobs grab out of RR control. > > S. > > > Sandy Sutherland | Technical Supervisor > > > > From: [email protected] > [[email protected]] on behalf of Cristobal Infante > [[email protected]] > Sent: 07 December 2012 17:22 > To: [email protected] > Subject: Re: Python: subprocess caching > > Hi Sandy, > > That sounds very interesting indeed, caching in the background is great but > sending it to farm > would be even better... > > What about feedback? how does the user know that the caching has finished? > > It would be beautiful if the process appears in the RR window... > > > > On 7 December 2012 12:48, Sandy Sutherland > <[email protected]> wrote: > I am already doing all our MDD point caching and fur ICE caching using RR > here, it is very simple to do. You do not need to use any launchprocess or > Popen - you can submit a .bat or .sh file to RR as an execute once - so your > currently setup method with the .bat and .py script works 100% - that is > exactly what we are doing here - we have cached about 3/4 of a feature film > like that already - well the ICE side - our finished movie was all .dd caches > done with .bat and .vbs files on the farm through RR. > > If you need any other info let me know. > > S. > > > Sandy Sutherland | Technical Supervisor > > > > From: [email protected] > [[email protected]] on behalf of Cristobal Infante > [[email protected]] > Sent: 07 December 2012 13:44 > > To: [email protected] > Subject: Re: Python: subprocess caching > > Thanks for that Gareth, works a treat.. > > Will look into hooking it up with RoyalRender next ;) > > Best, > C > > > > On 7 December 2012 11:40, Raffaele Fragapane <[email protected]> > wrote: > I would first try to wrap it inside a command with a return value and call > that command from inside the logic. Exception handling tricks seldom end in > happiness :) > > On Dec 7, 2012 9:36 PM, "Gareth Bell" <[email protected]> wrote: > Yeah that's right, within a button callback. > > I'll have a look into the "while 1" trick. Failing that - I guess I'll have > to find another solution. > > Thanks for your help > > > ________________________________ > > From: [email protected] on behalf of Raffaele Fragapane > Sent: Thu 06/12/2012 22:49 > To: [email protected] > Subject: Re: Python: subprocess caching > > > Glad it was of help. > I might be missing something, what do you mean "within logic"? > Inside a PPG's logic? You have it in a button callback or where? > > Subprocess can be finnicky if run inside something that does its own black > magic garbage collection, like most UI elements do. > There are tricks like using "while 1" and trying excepting something inside > to exit which will stall the caller enough for subprocess to finish doing its > thing, but it might or might not work out for you, or even be viable. > > > > On Fri, Dec 7, 2012 at 2:12 AM, Gareth Bell <[email protected]> > wrote: > > > > > Hi Raff, > > > > That's awesome. > > > > Forgive my ignorance but is it possible to run subprocess.Popen > within logic? As it is currently written it works outside of logic but not > within it. > > > > g > > > > > > > <furcache.JPG>

