Skip to content

Make LRAUV deployment plotting robust to dods errors and untransferred logs - #211

Merged
MBARIMike merged 1 commit into
mbari-org:mainfrom
MBARIMike:main
Oct 27, 2026
Merged

MBARIMike merged 1 commit into
mbari-org:mainfrom
MBARIMike:main

Conversation

@MBARIMike

Copy link
Copy Markdown
Collaborator

Retry transient dods server errors (502 Bad Gateway, seen as OSError Errno -70/-68) per file. Open and fully load each *_1S.nc inside _open_dataset_with_retry (OPEN_ATTEMPTS tries, growing backoff), so a failure retries only that file and xr.concat makes no network reads. After the last attempt the error is re-raised.

Retry the per-log-dir HTTP listings in _nc_files_for_dir (LISTING_ATTEMPTS tries), and record for each log dir whether its listing shows a .nc4.

Fix false "still waiting for log dir(s) to finish transferring" warnings that withheld notifications. _pending_log_dirs() now decides on the presence of the .nc4 file, which means the log has been transferred, not on the presence of *_1S.nc. A dir with a .nc4 but no *_1S.nc is not pending; INFO logs say whether it is awaiting processing or failed, with any ERROR lines from its *_processing.log. A dir with no .nc4, or whose listing could not be fetched, stays pending.

…d logs

Retry transient dods server errors (502 Bad Gateway, seen as OSError
Errno -70/-68) per file. Open and fully load each *_1S.nc inside
_open_dataset_with_retry (OPEN_ATTEMPTS tries, growing backoff), so a
failure retries only that file and xr.concat makes no network reads.
After the last attempt the error is re-raised.

Retry the per-log-dir HTTP listings in _nc_files_for_dir
(LISTING_ATTEMPTS tries), and record for each log dir whether its
listing shows a .nc4.

Fix false "still waiting for log dir(s) to finish transferring" warnings
that withheld notifications. _pending_log_dirs() now decides on the
presence of the .nc4 file, which means the log has been transferred, not
on the presence of *_1S.nc. A dir with a .nc4 but no *_1S.nc is not
pending; INFO logs say whether it is awaiting processing or failed, with
any ERROR lines from its *_processing.log. A dir with no .nc4, or whose
listing could not be fetched, stays pending.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@MBARIMike
MBARIMike merged commit ec1e581 into mbari-org:main Oct 27, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant