You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
scripts/hallu-sync.sh runs hourly via cron at /data/qumulo/openneuro/nemar-cli/scripts/hallu-sync.sh. It currently does a full git clone per dataset and a full git annex get for any new content. With ~100+ nm datasets, that is ~100 fresh clones/hour even when nothing has changed.
Git protocol traffic is on a separate quota from REST, but: (a) it wastes bandwidth on both sides, (b) it triggers SDSC -> S3 transfers that have already happened, (c) at high-frequency it can trip the per-IP secondary limit on Git operations.
Proposal
The manifest at /data/qumulo/openneuro/.nm-sync-manifest.json already tracks per-dataset version. Use it.
First-time clone: git clone --depth 1 --branch main, then git fetch origin git-annex. No full history needed for sync.
Subsequent runs: skip git clone entirely. Run git fetch --depth 1 origin main in the existing checkout. If HEAD did not move, skip the dataset entirely (no git annex get, no zip rebuild).
Version detection: query the API once per cycle (GET /datasets) and compare returned current_version against the manifest entry. Skip whole datasets where the version is unchanged.
Backoff on conflict: if git fetch fails with auth or network error, exponential backoff up to 4 retries before logging a sync failure for that dataset only.
Acceptance
Cron run on a fully-synced state issues 0 git clone commands.
Bandwidth on a steady-state cron run is negligible (only git fetch HEAD checks).
Manifest is updated atomically; failure on one dataset does not block others.
Log lines clearly differentiate 'skipped (unchanged)' from 'fetched (new version)'.
Activity
Phase 4: incremental hallu sync via latest_version on listing (#415)
Record that eegprep-lean exists and reads the archive
Correct the eegprep-lean tier table and where channel units live (#1468)