Get Processing Queue Status?
Is there a way to see the Processing Queue's current status/how many images are left to process? I don't see anything obvious in the scripting dictionary so figured I'd ask here. We have a nightly script running that processes out all of our non-selects into a local location but I need to figure out when it is done processing so I can take the next action (upload to S3/delete). I was hoping to avoid keeping track of all file names sent to process/comparing output folder to that list.
-
You could use the batch done script, which could kick off your upload script when the batch is finished(?)
0 -
Oh, that's a great thought! I'll have to research that some more. If I recall batch done scripts run anytime a batch is done, right? This is the only script running on that machine so don't think it would would have a negative impact.
Thanks so much @www.shootmachine.co!
0 -
That is correct. If it helps I made a post about events a while back: https://shootmachine.co/2021/06/22/events/
You basically just have to point the property to a valid script. From memory it accepts either file alias or a valid UNIX path (as text) to the script.
set batch done script to "path/to/fancyscript.scpt"
Now that script executes every time the queue completes. This will persist until you turn it off again:
set batch done script to ""
You need to make this framework for enabling/disabling in your logic. Check out Emory Dunn's script setter app - its so good for this event stuff!
0 -
Cool info! I forgot that I had made a similar finding with these scripts four years ago and posted on this forum:
Do you know the difference between Batch Done and Processing Done scripting? My script is currently going through hundreds of folders, sends specific images to process, moves on to next folder until it has made its way through all shoots from the day. I need to find when they are all fully out of the queue before kicking off that next script. Batch done and processing done just sound very similar. I assume I'm probably looking for processing done.
0 -
Processing Done is invoked after every variant finishes processing (and passes args to the invoked script for ID, original RAW path and Output path for the file).
Batch done is a simpler event - and runs after every committed batch. So if I process 20 images but (select and process in batches of 10), batch done script should run twice.
There are other properties for variant objects you could mix in, e.g:
is queued is true
which you can use to find out if it is in the queue.
0 -
Thanks a lot for the info. I'll have to try some things out.
0
Post ist für Kommentare geschlossen.
Kommentare
6 Kommentare