GeoscienceAustralia / dea-orchestration

4 stars 1 forks source link

Use set -x for echo logging and create unique cache dir #112

Closed santoshamohan closed 5 years ago

santoshamohan commented 5 years ago

Reason for this pull request

Incorporate suggestion from #108 (Replace _copy/paste + echo_, with built-in shell command set -/+x). Multiple sync jobs may fail, if two jobs are running at the same time, as one job may attempt to create the cache directory after the other's job has already created.

Proposed solution

  1. Replace _copy/paste + echo_, with built in shell command set -/+x.
  2. Create unique cache directory for the requested sync job.