thoth.ingestion.flows.clone

Clone handbook repository to GCS.

Functions

clone_handbook(_request)

Clone the GitLab handbook repo to GCS for ingestion (one-time setup).

setup_logger(name[, level, simple, json_output])

Create and configure a logger with structured JSON output.

Classes

IngestionPipeline([repo_manager, chunker, ...])

Orchestrates the complete ingestion pipeline.

JSONResponse(content[, status_code, ...])

Request(scope, ~typing.Any], receive, ...)

async thoth.ingestion.flows.clone.clone_handbook(_request: Request) JSONResponse[source]

Clone the GitLab handbook repo to GCS for ingestion (one-time setup).

Uses the pipeline’s GCSRepoSync to clone the repo into the configured bucket/prefix. Requires GCS_BUCKET_NAME and pipeline configured for GCS.

Returns:

JSONResponse with status and message; 200 on success, 4xx/5xx on error.