Repository navigation
fix(session): never write a failure marker next to .done - #6080
Closed
OnePerson2020 wants to merge 1 commit into
Closed
OnePerson2020 wants to merge 1 commit into
OnePerson2020 wants to merge 1 commit into
Conversation
Collaborator
|
Thanks for reporting this! The task-result persistence failure is now addressed by merged PR #6153: the existing Skipping only |
OnePerson2020
pushed a commit
to OnePerson2020/OpenViking
that referenced
this pull request
Oct 16, 2026
…ne#6153, upgrade notes for main 2026-10-16 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
OnePerson2020
pushed a commit
to OnePerson2020/OpenViking
that referenced
this pull request
Oct 16, 2026
…ine#6153) Cherry-pick of volcengine#6153 (merged 2026-10-16, replaces our closed volcengine#6080). A failure saving the task result used to leave .done next to a failed task. .done still lands before the queue work is released, so _can_run_archive's predecessor re-check is unaffected. Test fails on the previous order. Drop on the next upgrade past volcengine#6153. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
_run_memory_extractionwrites.doneand then records the task result in the sametry; if anything after.donefails (e.g. the task store), theexcepthandler writes.failed.jsonnext to it.terminal_statereads.donefirst, so the archive is completed, but the failure marker remains as a contradictory record._write_failed_marker, which every failure path goes through, now skips (with a warning) an archive that already has.done.Human Involvement
Related Issue
Fixes #6078
Type of Change
Changes Made
Session._write_failed_marker: return early when the archive has.done.test_phase2_failure_after_done_does_not_mark_archive_failed(Phase 2 completes,tracker.completeraises).Testing
.failed.jsonwritten next to.done); with it, it passes.tests/unit/session+tests/session: 1561 passed with the change; the only difference from main is the new test (the 37 failed / 116 errors are identical before and after in my environment — vectordb engine / full-config tests;test_session_commit_race.pyhangs on main locally, so it is excluded). Ruff andgit diff --checkclean.Checklist
Additional Notes
No API or data-format change; no new dependency.
🤖 Generated with Claude Code