Whole-pipeline run with several interrupted steps: one resume choice, or one per step? #64

Closed
opened 2026-11-13 16:34:58 +00:00 by chris-kreidl · 1 comment
chris-kreidl commented 2026-11-13 16:34:58 +00:00 (Migrated from github.com)

🤖 Claude: Found while building #18.

For a single interrupted step that can resume (refresh or enrich), the page offers Resume it / Start over, as the CLI does. When Run the whole pipeline finds both refresh and enrich interrupted, the page currently asks once for both, the way bun cli.ts refresh enrich --restart applies one flag to all of them. The interactive CLI (bun cli.ts with no arguments) asks per step instead.

Question for Chris: is one choice for the whole pipeline fine, or should the page ask per step (e.g. resume refresh but start enrich over)? Asking per step would need a per-step restart list in POST /api/jobs and in the CLI's flags (e.g. --restart=enrich).

🤖 **Claude:** Found while building #18. For a single interrupted step that can resume (refresh or enrich), the page offers **Resume it / Start over**, as the CLI does. When **Run the whole pipeline** finds *both* refresh and enrich interrupted, the page currently asks **once** for both, the way `bun cli.ts refresh enrich --restart` applies one flag to all of them. The interactive CLI (`bun cli.ts` with no arguments) asks per step instead. **Question for Chris:** is one choice for the whole pipeline fine, or should the page ask per step (e.g. resume refresh but start enrich over)? Asking per step would need a per-step restart list in `POST /api/jobs` and in the CLI's flags (e.g. `--restart=enrich`).
chris-kreidl commented 2026-11-13 16:54:31 +00:00 (Migrated from github.com)

🤖 Claude: Decided with Chris: one choice for the whole pipeline, as built in #18. No per-step restart list in POST /api/jobs or the CLI.

Why:

  • One run stops at its first interrupted step, so both refresh and enrich being interrupted takes two separate interrupted runs. It's rare.
  • Restarting refresh shouldn't leave enrich half-resumed. The one-choice prompt can't produce that mix.
  • Enrich's saved work is Yahoo quotes keyed by symbol, so refresh's data doesn't change it. Its real risk is the quotes' age, which is the same whatever refresh does. That's filed as #66.
🤖 **Claude:** Decided with Chris: **one choice for the whole pipeline**, as built in #18. No per-step restart list in `POST /api/jobs` or the CLI. Why: - One run stops at its first interrupted step, so both refresh and enrich being interrupted takes two separate interrupted runs. It's rare. - Restarting refresh shouldn't leave enrich half-resumed. The one-choice prompt can't produce that mix. - Enrich's saved work is Yahoo quotes keyed by symbol, so refresh's data doesn't change it. Its real risk is the quotes' age, which is the same whatever refresh does. That's filed as #66.
Sign in to join this conversation.
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
ckreidl/screener#64
No description provided.