feat(cli): stack prisma fetch --workers (refs #659)

This commit is contained in:
kert
2026-08-19 11:33:01 -04:00
parent 912272d6fe
commit f330d9254e

View File

@@ -253,6 +253,12 @@ def flow(
def fetch( def fetch(
name: str = typer.Argument(..., help="Project slug."), name: str = typer.Argument(..., help="Project slug."),
limit: int = typer.Option(0, "--limit", "-n"), limit: int = typer.Option(0, "--limit", "-n"),
workers: int = typer.Option(
8,
"--workers",
"-w",
help="Concurrent fetch workers (fallback tier stays serialized).",
),
db: Path = typer.Option(_DEFAULT_ZOT, "--db"), db: Path = typer.Option(_DEFAULT_ZOT, "--db"),
storage: Path = typer.Option(_DEFAULT_STORAGE, "--storage"), storage: Path = typer.Option(_DEFAULT_STORAGE, "--storage"),
scratch: Path = typer.Option(Path(".state/prisma-fetch"), "--scratch"), scratch: Path = typer.Option(Path(".state/prisma-fetch"), "--scratch"),
@@ -327,6 +333,7 @@ def fetch(
email=email, email=email,
fetch_proxy=fetch_proxy, fetch_proxy=fetch_proxy,
limit=limit or None, limit=limit or None,
workers=workers,
) )
stats = _hold(_go, hold=hold) stats = _hold(_go, hold=hold)