yoi/.yoi/tickets/00001KXB7V4WY/thread.md

2.3 KiB

作成

LocalTicketBackend によって作成されました。


Intake summary

Marked ready by yoi ticket state.


State changed

Marked ready by yoi ticket state.


State changed

Ticket を yoi ticket が queued にしました。


State changed

State changed to inprogress.


Implementation report

Implemented Runtime restart-crossing Worker restore path.

  • Added explicit Restore execution operation and WorkerExecutionRestoreRequest / backend restore API.
  • Added Runtime restore pass for fs-backed Runtime startup after execution backend install.
  • Persisted connected mappings remain stale on load until a real backend handle is restored.
  • Restore success commits a live execution handle, connected status, Workdir status, and WorkerExecutionRestored event.
  • Restore failure keeps the Worker stale and records worker_execution_restore_failed diagnostics without failing Runtime startup.
  • Worker runtime backend can restore controllers through RuntimeWorkerFactory::restore_controller, using Worker::restore_from_worker_metadata_with_context and a conservative pending/no-history fallback.
  • Spawn and restore share event bridge/handle registration behavior.

Validation:

  • cargo fmt
  • cargo check -q -p worker-runtime
  • cargo check -q -p worker-runtime --features fs-store
  • cargo check -q -p worker-runtime --features fs-store,ws-server
  • cargo test -q -p worker-runtime --features fs-store,ws-server
  • cargo check -q
  • nix build .#yoi --no-link

State changed

State changed to done.