Uploadclient
Classes¶
UploadClient ¶
UploadClient(_client=None, logger=None, tracing=True)
Initialises the basic settings for an UploadClient object
:param _client: - Optional: rucio.client.client.Client object. If None, a new object will be created. :param logger: - Optional: logging.Logger object. If None, default logger will be used.
Functions¶
upload ¶
upload(
items,
summary_file_path=None,
traces_copy_out=None,
ignore_availability=False,
activity=None,
)
:param items: List of dictionaries. Each dictionary describing a file to upload. Keys:
path - path of the file that will be uploaded
rse - rse expression/name (e.g. 'CERN-PROD_DATADISK') where to upload the file
did_scope - Optional: custom did scope (Default: user.
:returns: 0 on success
:raises InputValidationError: if any input arguments are in a wrong format :raises RSEWriteBlocked: if a given RSE is not available for writing :raises NoFilesUploaded: if no files were successfully uploaded :raises NotAllFilesUploaded: if not all files were successfully uploaded
preferred_impl ¶
preferred_impl(rse_settings, domain)
Finds the optimum protocol impl preferred by the client and supported by the remote RSE.
:param rse_settings: dictionary containing the RSE settings :param domain: The network domain, either 'wan' (default) or 'lan'
:raises RucioException(msg): general exception with msg for more details.