Skip to content

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

get_dataset_locks(scope, name)

Get a dataset locks of the specified dataset.

Parameters:

Name Type Description Default
scope str

the scope of the did of the locks to list.

required
name str

the name of the did of the locks to list.

required

get_locks_for_dids(dids, **filter_args)

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

Parameters:

Name Type Description Default
dids list[Mapping[str, Any]]

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

required

Returns:

Type Description
list[dict[str, Any]]

list of dictionaries with lock info

get_dataset_locks_by_rse(rse)

Get all dataset locks of the specified rse.

Parameters:

Name Type Description Default
rse str

the rse of the locks to list.

required