[eluser]antonumia[/eluser]
I have a large recursive script that I have inherited.
Basically, it
1. reads exif data from a lot of large images
2. copies them into directories based on date and renames them
3. runs a shell exec that creates video files from each directory
4. runs another shell_exec that resizes all of the copied images (it was using image_lib but it was too much for it).
5. migrates processed source images into a backup directory.
So i'm testing this on a run of 2500 images.
The script work fine through stages 1+2 but doesn't like 4-5 - no surprises there.
If I run the entire process on a single directory, it works so I'm about to rewrite the whole thing to process a single directory at a time and then run the script as a cron job.
I figured the simplest way would be to save an array of tasks into my database then delete each directory from the array after its been processed.
Just wondering if there's a different/better way i can do this within CI?
thanks,
anton