Skip to content

fix(session): preserve queued commit on shutdown cancellation - #5591

Open
yu1128-L wants to merge 1 commit into
volcengine:mainfrom
yu1128-L:fix/session-shutdown-cancellation
Open

yu1128-L wants to merge 1 commit into
volcengine:mainfrom
yu1128-L:fix/session-shutdown-cancellation

Conversation

@yu1128-L

@yu1128-L yu1128-L commented Oct 3, 2026

Copy link
Copy Markdown

Fixes #5579

What changed

Only write the archive .failed.json marker when cancellation was explicitly requested for the task. Service-shutdown cancellations now leave the queued commit recoverable instead of permanently marking it as failed.

Verification

  • python -m pytest -o addopts='' tests/unit/session/test_session_commit_resume.py -k cancellation_marks_archive -q: 2 passed, 12 deselected
  • python -m ruff check openviking/session/session.py tests/unit/session/test_session_commit_resume.py: passed
  • git diff --check: passed

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

Status: Backlog

Development

Successfully merging this pull request may close these issues.

[Bug]: service shutdown makes recoverable session commits permanently failed

1 participant