Skip to content

fix: detect cloud-storage sync via status 'c' in addition to in_cache#3

Merged
devinslick merged 1 commit intomainfrom
claude/fix-torrent-sync-timeout-dZSfc
Feb 28, 2026
Merged

fix: detect cloud-storage sync via status 'c' in addition to in_cache#3
devinslick merged 1 commit intomainfrom
claude/fix-torrent-sync-timeout-dZSfc

Conversation

@devinslick
Copy link
Owner

The CI job was timing out in the sync step because the API consistently
returns in_cache=False for this account type, so the condition
bool(t.in_cache) never became True.

The API actually signals a completed sync through two mechanisms:

  • in_cache=True — explicit flag, set on some plan types
  • 'c' in status — status code that appears once the seedbox has moved
    the data to permanent cloud storage

The logs show status=['sd', 'c', 'i'] appears at the very first sync poll
(immediately after progress reaches 100%), confirming 'c' is the reliable
signal on this account. Both conditions are now ORed together so the
step passes as soon as either signal is present.

https://claude.ai/code/session_01E5jYKaDuJWCb7LZgyk2u6n

The CI job was timing out in the sync step because the API consistently
returns in_cache=False for this account type, so the condition
`bool(t.in_cache)` never became True.

The API actually signals a completed sync through two mechanisms:
- in_cache=True  — explicit flag, set on some plan types
- 'c' in status  — status code that appears once the seedbox has moved
                   the data to permanent cloud storage

The logs show status=['sd', 'c', 'i'] appears at the very first sync poll
(immediately after progress reaches 100%), confirming 'c' is the reliable
signal on this account.  Both conditions are now ORed together so the
step passes as soon as either signal is present.

https://claude.ai/code/session_01E5jYKaDuJWCb7LZgyk2u6n
@devinslick devinslick merged commit 4633f2e into main Feb 28, 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.

2 participants