Skip to content

IDEA: Operate data flow on file-by-file basis #29

@tjk584

Description

@tjk584

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions