acep-uaf / camio-meter-streams

0 stars 0 forks source link

Add Max Age for Event Downloads #157

Closed nicolemah99 closed 1 month ago

nicolemah99 commented 1 month ago

We need to enhance our download pipeline to ensure that it only downloads events that are newer than a specified maximum age. This feature will prevent the system from downloading outdated events. The maximum age should be configurable in days.

Tasks

  1. Update Configuration:

    • Add a new configuration parameter max_age_days to the existing configuration file.
    • Document the new configuration parameter.
  2. Read Configuration in Data Pipeline:

    • Update the data_pipeline.sh script to read the max_age_days parameter from the configuration file.
    • Pass to download script
  3. Pass Max Age to Download Script:

    • Modify the download.sh script to accept and pass the max_age_days parameter to the get_events.sh script.
  4. Update get_events.sh Script:

    • Modify the script to calculate the event age and compare it with the max_age_days parameter.
    • Only include events in the output that are newer than the specified maximum age.