Skip to content

Runs start when their initial record cannot be saved #522

Description

@aitianshi

Priority

P2 · Planned. Affects launches when run-record storage fails.

Evidence

Execution._save() suppresses OSError, including its first call from Execution.start().
Injected a write failure with the worker replaced by a recorder: worker_started=True, record_exists=False.
A run can execute without the record needed to recover it after a restart.

Reproduction

  1. Use a scratch profile.
  2. Patch execution.ondisk.write_whole to raise OSError and replace Execution._main with a recorder.
  3. Call execution.start(Plan(name="record-failure", script="true")).
  4. The worker starts although run.json is absent.

Expected

Refuse launch when its initial run record cannot be saved.

Acceptance

  • An initial record write failure starts no worker and returns an actionable error.
  • Failed launch leaves no active execution registered.
  • A regression test injects the initial write failure.

Related

#514; #360 covers record size and layout.

Activity

  1. added
    bug
    P2
    on Nov 30, 2026
  2. added theissue type on Nov 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2bug

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions