Skip to content

chore(translate): make translation chunk concurrency configurable #175

@luandro

Description

@luandro

Background

Concurrency for translation chunk processing is currently hardcoded in scripts/notion-fetch/generateBlocks.ts with a // TODO: Make concurrency configurable via environment variable or config comment.

What to do

  • Add a TRANSLATION_CONCURRENCY (or similar) constant/env-var alongside the existing constants in scripts/constants.ts
  • Wire it into the chunk processing loop in generateBlocks.ts
  • Document the env var in the repo's workflow documentation

This allows tuning for different API rate limits (OpenAI vs DeepSeek vs local models) without code changes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions