flip_api.fl_services.services.pull_required_files
Functions
Pulls the per-backend |
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.jsonfrom 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 (
nvflareorflower).- Raises:
Exception – If the object cannot be fetched from S3 or is not valid JSON.