Skip to content

Lockclient

Classes

LockClient

LockClient(
    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,
)

Lock client class for working with rucio locks

Functions

get_dataset_locks
get_dataset_locks(scope, name)

Get a dataset locks of the specified dataset.

PARAMETER DESCRIPTION
scope

the scope of the did of the locks to list.

TYPE: str

name

the name of the did of the locks to list.

TYPE: str

get_locks_for_dids
get_locks_for_dids(dids, **filter_args)

Get list of locks for for all the files found, recursively, in the listed datasets or containers.

PARAMETER DESCRIPTION
dids

list of dictionaries {"scope":..., "name":..., "type":...} type can be either "dataset" or "container" type is optional, but if specified, improves the query performance

TYPE: list[Mapping[str, Any]]

RETURNS DESCRIPTION
list[dict[str, Any]]

list of dictionaries with lock info

get_dataset_locks_by_rse
get_dataset_locks_by_rse(rse)

Get all dataset locks of the specified rse.

PARAMETER DESCRIPTION
rse

the rse of the locks to list.

TYPE: str

Functions