Skip to content

Restore Work continuation after stopping an unlaunched worker - #173

Closed
sergeytolkachyov wants to merge 1 commit into
devfrom
fix/171-cancelled-worker-continuation-131
Closed

sergeytolkachyov wants to merge 1 commit into
devfrom
fix/171-cancelled-worker-continuation-131

Conversation

@sergeytolkachyov

Copy link
Copy Markdown
Member

Stopping a prepared SQLite worker before launch changes its status to cancelled while its phase remains prepared. Both v2 continuation operations used to reject that attempt as busy.

The shared continuation check now recognizes cancellation before launch using the stored phase, projected status and launch facts. An applicable active lease still yields active_lease. A subsequent preparation or a live worker still yields worker_not_quiescent. The 1.3.1 release notes describe the fix.

Verification

  • The new regression fails on the original guard and passes on the candidate.
  • Native Windows and Linux (WSL2) runs passed the source smoke and reproduced successful create and resume through a sealed sandbox CLI and MCP stdio. The runs check the original Work selectors, the preserved SQL attempt, the active lease and a new running attempt.
  • Windows execution tests returned 119 passed and one Linux-only skip. Scoped Ruff, format, mypy, schema, checksum and public cleanliness checks passed.
  • Independent Astra 6.2 High review approved tree 683de1816ea3dc945460829beca451650ba49a7d after checking both native logs and a separate 18-case guard matrix.

Refs #171

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.

1 participant