Idea for potential improvement
Use inotify to trigger each script on every file that is moved to a specific directory, instead of using flags to trigger subsequent scripts. The inotify daemon could then trigger a background instance of the dataflow script for each file triggered on, allowing the dataflow to work in parallel.
Files moved could be watched for specific events such as "moved_to" for rsync to trigger after rsync_to_nas or rsync_to_campus
- Note: for
rsync_to_nas, inotify events aren't triggered on CD/DDS computers when a different computer moves file to the NAS. Files would have to be transferred via the CD/DDS computers instead of directly to the NAS
- If scripts are executing in parallel, the logging would have to be changed slightly so the logfiles are still readable (as parallel processes would write to the file at the same time)
Idea for potential improvement
Use inotify to trigger each script on every file that is moved to a specific directory, instead of using flags to trigger subsequent scripts. The inotify daemon could then trigger a background instance of the dataflow script for each file triggered on, allowing the dataflow to work in parallel.
Files moved could be watched for specific events such as "moved_to" for rsync to trigger after
rsync_to_nasorrsync_to_campusrsync_to_nas, inotify events aren't triggered on CD/DDS computers when a different computer moves file to the NAS. Files would have to be transferred via the CD/DDS computers instead of directly to the NAS