Skip to content

Technical guide · Overview

Page status: HistoricalHistory group: Updates

NutsNews backfill continue-on-error update

This update changes scripts/backfill_article_summaries.mjs so a bad translation row does not stop the whole backfill.

Visual overview

Primary diagram

System map

This update changes scripts/backfill_article_summaries.mjs so a bad translation row does not stop the whole backfill.

Render the repository-owned system map when you need it.

Diagram is not rendered yet.

View as text
NutsNews backfill continue-on-error update

This update changes scripts/backfill_article_summaries.mjs so a bad translation row does not stop the whole backfill.

flowchart TB
  accTitle: NutsNews backfill continue-on-error update
  accDescr {
    This update changes scripts/backfill_article_summaries.mjs so a bad translation row does not stop the whole backfill.
  }
  A["NutsNews backfill continue-on-error update"] --> B["updates/README_BACKFILL_CONTINUE_ON_ERROR_UPDATE.md"]
  B --> C["Auto-generated placeholder diagram"]

NutsNews backfill continue-on-error update

Fullscreen diagram view.

NutsNews backfill continue-on-error update

Section titled “NutsNews backfill continue-on-error update”

This update changes scripts/backfill_article_summaries.mjs so a bad translation row does not stop the whole backfill.

  • Each translation row is translated and saved independently.
  • If Local AI/Ollama returns a bad response for one row, the script logs the failed row and continues.
  • If Supabase rejects one row save, the script logs that row and continues.
  • The final publish-ready check is also non-fatal; saved translations are kept even if that optional check fails.
  • The script prints a final summary with saved count and failed/skipped count.
  • The Supabase language-code filters now quote/encode language codes such as de-CH correctly.

Use PUBLISH_READY=0 during large backfills, then publish/check later after coverage looks good.

Terminal window
LANGUAGE_CODES="de-CH,de,el" \
BACKFILL_SOURCE=public_feed_snapshot \
CANDIDATE_LIMIT=250 \
BACKFILL_LIMIT=30 \
PUBLISH_READY=0 \
node scripts/backfill_article_summaries.mjs | tee /tmp/nutsnews-de-ch-de-el-backfill.log