Skip to content

Publish only the checkpoints the last attempt saved - #34

Draft
sminot wants to merge 1 commit into
mainfrom
publish-final-attempt-checkpoints
Draft

sminot wants to merge 1 commit into
mainfrom
publish-final-attempt-checkpoints

Conversation

@sminot

@sminot sminot commented Dec 1, 2026

Copy link
Copy Markdown
Collaborator

AWS Batch can rerun a task's job in the same S3 work directory, and each attempt stages out its files without removing what the earlier one left. Checkpoints are named by a hash of their content, so the out/** glob picked up both attempts: a rerun on salk published a stale lowres-51fd7c92cb49 next to lowres-8fa7406c59df, and the viewer listed both.

savedByLastAttempt keeps a .zarr.zip only when the results.log beside it has an [ok] saved …/<name> ( line for it. Every attempt rewrites that log from empty. ANALYSE's publishDir and the PUBLISH_VIEWER input both apply it.

🤖 Generated with Claude Code

AWS Batch can run a task's job twice in the same S3 work directory, and each
attempt stages out what it wrote without removing what an earlier one left
there. A checkpoint's name is a hash of its content, so a rerun dataset
published a stale low-res copy beside the current one and listed both in the
viewer. ANALYSE's publishDir and the PUBLISH_VIEWER input now keep only the
checkpoints named in an `[ok] saved` line of the results.log beside them,
which every attempt rewrites from empty.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

This branch has not been deployed

No deployments
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