Skip to content

fix(ateapi): retry stored-worker scan in syncer startup - #772

Merged
Scott Funkenhauser (sfunkenhauser) merged 1 commit into
agent-substrate:mainfrom
aramase:aramase/i/fix_609_orphan_reconcile_retry
Aug 17, 2026
Merged

Scott Funkenhauser (sfunkenhauser) merged 1 commit into
agent-substrate:mainfrom
aramase:aramase/i/fix_609_orphan_reconcile_retry

Conversation

@aramase

Copy link
Copy Markdown
Collaborator

Fixes #609

The startup stored-worker scan (enqueueStoredWorkers) returned on the first ListWorkers error, skipping orphan cleanup until the next restart. The #674 workqueue only retries per-key reconciles, not this initial scan, so retry the scan with capped wait.Backoff until it succeeds or the context is cancelled.

  • Tests pass
  • Appropriate changes to documentation are included in the PR

@aramase

Copy link
Copy Markdown
Collaborator Author

Scott Funkenhauser (@sfunkenhauser) the token e2e failure looks like an unrelated resume/readyz flake (demo_test.go:543, sandbox restore path). Cert e2e and unit tests passed on the same commit, and this PR only touches syncer.go. Could you re-run the token job? I don't have permissions.

@sfunkenhauser

Copy link
Copy Markdown
Collaborator

sfunkenhauser the token e2e failure looks like an unrelated resume/readyz flake (demo_test.go:543, sandbox restore path). Cert e2e and unit tests passed on the same commit, and this PR only touches syncer.go. Could you re-run the token job? I don't have permissions.

Re-running.

@sfunkenhauser
Scott Funkenhauser (sfunkenhauser) merged commit 517e48e into agent-substrate:main Aug 17, 2026
15 of 19 checks passed
@aramase
Anish Ramasekar (aramase) deleted the aramase/i/fix_609_orphan_reconcile_retry branch August 17, 2026 17:20
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.

[P2] Startup orphan reconciliation aborts on ListWorkers pagination error — ghost workers persist

2 participants