Skip to main content

LockClient

get_dataset_locks

Get a dataset locks of the specified dataset.

Arguments:

scope: the scope of the did of the locks to list.

name: the name of the did of the locks to list.

get_locks_for_dids

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

Arguments:

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

Returns:

list of dictionaries with lock info

get_dataset_locks_by_rse

Get all dataset locks of the specified rse.

Arguments:

rse: the rse of the locks to list.