GeoscienceAustralia / dea-orchestration

4 stars 1 forks source link

Process s2 ard and landsat scene dataset sync in a more efficient way #103

Closed santoshamohan closed 5 years ago

santoshamohan commented 5 years ago

Request for this pull request

Sentinel 2 ARD granules for all the years are packaged into one single directory as follows: /g/data/if87/datacube/002/S2_MSI_ARD/packaged.

This breaks the orchestration process for dea-sync on S2 ard products. And would add more manual editing of serverless configuration file whenever new granules are packaged within the packaged directory.

Proposed solution

  1. Update handler.js function to expand path glob based on process environment variables and then pass the same to the ssh execution command string.
  2. Add a delay of 1s before execution new ssh command. This is done to ensure that dea-sync does not fail while accessing same cache file when we schedule all the ssh command string without any delay.
  3. Update handler.js function for processing Landsat scenes in lines with S2 ARD Granule changes.