flip_api.file_services.retrieve_federated_results
Attributes
Functions
|
Retrieve federated results for a model from S3. |
Module Contents
- flip_api.file_services.retrieve_federated_results.router
- flip_api.file_services.retrieve_federated_results.retrieve_federated_results(model_id: uuid.UUID, db: sqlmodel.Session = Depends(get_session), user_id: uuid.UUID = Depends(verify_token)) list[str]
Retrieve federated results for a model from S3.
- Parameters:
model_id (UUID) – The ID of the model to retrieve results for.
db (Session) – Database session.
user_id (UUID) – User ID from authentication.
- Returns:
A list of presigned URLs for the files associated with the model.
- Return type:
list[str]
- Raises:
HTTPException – If the user is not allowed, if the model ID does not exist, if S3 command gives an error while listing objects, or if there are any errors retrieving objects from S3.