Skip to content

A6.3: Batch output sinks (ndjson stdout + per-item files)#22

Closed
paulius-krutkis-dcd wants to merge 1 commit into
batch-executorfrom
scr-3180-batch-output
Closed

A6.3: Batch output sinks (ndjson stdout + per-item files)#22
paulius-krutkis-dcd wants to merge 1 commit into
batch-executorfrom
scr-3180-batch-output

Conversation

@paulius-krutkis-dcd

Copy link
Copy Markdown
Collaborator

Third of four stacked PRs for A6 — batch input (SCR-3092).

Adds the two batch output destinations on top of the executor (A6.2):

  • createNdjsonStdoutSink — one JSON record per line on stdout, regardless of TTY (the batch default).
  • createDirectorySink — one <name>.json file per item into a directory (created if needed); names derived from the input URL slug or row index, deduped on collision.

Both share toBatchRecord, so a record is identical whether streamed or written to a file — successes carry result, failures carry error.

Based on scr-3179-batch-executor — review/merge A6.2 (#21) first.

Stack: A6.1 (#20) → A6.2 (#21) → A6.3 (this) → A6.4

Closes SCR-3180.

🤖 Generated with Claude Code

Add the two batch output destinations on top of the executor:

- createNdjsonStdoutSink: one JSON record per line on stdout, regardless
  of TTY (the batch default).
- createDirectorySink: one <name>.json file per item into a directory
  (created if needed); names derived from the input URL slug or row
  index via batchItemFilename, deduped on collision.

Both share toBatchRecord so a record looks identical whether streamed or
written to a file. Successes carry `result`, failures carry `error`.

Depends on A6.2 (SCR-3180).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@paulius-krutkis-dcd

Copy link
Copy Markdown
Collaborator Author

Superseded by #26 (rebranched to drop internal ids).

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