Skip to content

Touchclient

Classes

TouchClient

TouchClient(
    rucio_host=None,
    auth_host=None,
    account=None,
    ca_cert=None,
    auth_type=None,
    creds=None,
    timeout=600,
    user_agent="rucio-clients",
    vo=None,
    logger=LOG,
)

Touch client class to send a trace that can be used to update accessed_at for file or dataset DIDs

Functions

touch
touch(scope, name, rse=None)

Sends a touch trace for a given file or dataset.

PARAMETER DESCRIPTION
scope

TYPE: The scope of the file/dataset to update.

name

TYPE: The name of file/dataset to update.

rse

TYPE: Optional parameter if a specific replica should be touched. DEFAULT: None

RAISES DESCRIPTION
DataIdentifierNotFound

If given dids does not exist.

RSENotFound

If rse is not None and given rse does not exist.

UnsupportedDIDType

If type of the given DID is not FILE or DATASET.

RucioException

If trace could not be sent successfully.

Functions