flip_api.fl_services.services.pull_required_files

Functions

pull_required_files_json_to_assets(→ None)

Pulls the per-backend required_files.json from S3 into the local assets folder.

Module Contents

flip_api.fl_services.services.pull_required_files.pull_required_files_json_to_assets(fl_backend: flip_api.domain.schemas.types.FLBackend) None

Pulls the per-backend required_files.json from S3 into the local assets folder.

S3 is the single source of truth — there is no checked-in or in-code fallback. If the download fails the error is logged and re-raised; callers decide whether to proceed (model creation treats this as best-effort). This mirrors the base-application contract: without S3 there is nothing to bundle.

Parameters:

fl_backend (FLBackend) – The FL backend whose manifest to pull (nvflare or flower).

Raises:

Exception – If the object cannot be fetched from S3 or is not valid JSON.