Skip to content

stop-interrupted-crawl leaves a Ctrl-C'd crawl paused instead of stopped #1672

Closed

Description

@nc9

Found while reviewing the crawl status guards (#1671). apps/cli/src/.../stop-interrupted-crawl.ts marks a crawl stopped with raw SQL filtered on status = 'running'. After Ctrl-C, stop() writes paused first, so the filter no-ops and the crawl stays paused. --resume accepts paused, so resuming works, but the stored status says paused where the user stopped the audit. It also bypasses the transition table in core-contracts.

Acceptance Criteria

  • After Ctrl-C during a crawl, the stored crawl status is the one the status table says (stopped or paused, decided and documented), not whatever the raw SQL filter happens to match
  • The write goes through the same guarded storage path as every other status write, not raw SQL
  • A test interrupts a running crawl and asserts the stored status and that --resume still resumes it

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions