Queue Logic

Hi All,

I have an automated image processing script that i am triggering via hot folders, and I recently attempted to implement a queue system using the jobqueue script on this site.

Problem is, it appears to me that the script treats each file as a separate job, where i need it to treat each SET of files as a separate job.

So without the queue system it works like this: A set of images are dropped in, a folder structure is made and dynamically named (with a time stamp), the images are processed and the results are distributed to the proper folders. With the queue system, everything still works except that a new folder structure is created for each image instead of each image set.

The problem i’m having is that I don’t know how to make a queue where the script can determine between sets of files. One set is dropped in, it gets its own folder structure, and while its processing if another set is dropped in, those files get relegated to a “waiting” area and once they’re ready they get their own folder structure and start processing. Does anyone have any experience with this kind of logic?

Thanks again, this forum has always been such a huge help for me!

Ok I think I figured out how the queue system will organize and process the files, but I am still having trouble with how to get AS to define files by sets.

For example, I want to have one folder for files that are waiting to be processed. Say there are 3 sets of ten files in that folder, so there are 30 files in it. I want to process each set in the order it was added, put it in a folder when its done, and then start processing the next set.

I’m thinking this could be done somehow with lists but i’m not 100% on how to implement it. Anyone have a suggestion?

Thanks!