True when ``bucket_name`` matches the `` .archived. `` pattern produced by worktree consolidation (or the bare ``.archived`` suffix an older migration might have used). Used by scheduler scan and diagnostics to skip tombstone buckets consistently.
(bucket_name: str)
| 75 | |
| 76 | |
| 77 | def is_archived_bucket(bucket_name: str) -> bool: |
| 78 | """True when ``bucket_name`` matches the ``<name>.archived.<ts>`` pattern |
| 79 | produced by worktree consolidation (or the bare ``.archived`` suffix an |
| 80 | older migration might have used). Used by scheduler scan and diagnostics |
| 81 | to skip tombstone buckets consistently.""" |
| 82 | return bucket_name.endswith(ARCHIVED_BUCKET_SUFFIX) or f"{ARCHIVED_BUCKET_SUFFIX}." in bucket_name |
| 83 | |
| 84 | # Sidecar file that stores the bucket's canonical cwd. Written lazily by |
| 85 | # :func:`build_paths`; read by the worktree migration to identify a bucket's |
no outgoing calls
no test coverage detected