APP 1.5 details
This is what the cron job will be doing. I am going to be following this steps as I write the master script - description courtesy of Jacob.
Algorithm
Get flight(s) information from database (db) .
read information into an array/dictionary.
Check to see if the flight data has been processed.
If not processed, proceed.
Use flight UUID to identify flight folder.
Count files in flight folder on OIT storage (images and other).
Compare the number of files from db to the count from 4.
If number of files from db == number of files from OIT storage:
Generate the LSF script
Generate a log file
Submit job to the gpu queue
save the LSF job id
Use LSF job id from ii.1 to monitor the job
Keep logs of the running job
HPC job is completed if the file “log.json“ exist
Update database with information about job processing
HPC job has failed if file ‘log.json’ does not exist
Update the database with 'failed' status