Lifetimeclient
Classes¶
LifetimeClient ¶
LifetimeClient(
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,
)
Lifetime client class for working with Lifetime Model exceptions
Functions¶
list_exceptions ¶
list_exceptions(exception_id=None, states=None)
Lists lifetime model exceptions that allow extending data lifetimes beyond their configured policies.
The lifetime model exceptions are used to override the default lifecycle policies for data identifiers (files, datasets, containers, or archives) that need to be kept longer than usual. These exceptions can be filtered by their ID or approval state (this feature is not available yet).
PARAMETER | DESCRIPTION |
---|---|
exception_id
|
The unique identifier of a specific exception. If provided, returns only that exception.
TYPE:
|
states
|
Filter exceptions by their states. Possible values are: -
TYPE:
|
RETURNS | DESCRIPTION |
---|---|
Iterator[dict[str, Any]]
|
An iterator of dictionaries containing the exception details: - |
add_exception ¶
add_exception(dids, account, pattern, comments, expires_at)
Creates a lifetime model exception request to extend the expiration date of data identifiers (DIDs).
These exceptions allow requesting extensions to DIDs' lifetimes, subject to approval and configured maximum extension periods. The request includes details about which DIDs should have extended lifetimes, who is requesting it, and why it's needed.
PARAMETER | DESCRIPTION |
---|---|
dids
|
List of dictionaries containing the data identifiers to be excepted. Each dictionary must contain: -
TYPE:
|
account
|
The account requesting the exception
TYPE:
|
pattern
|
Associated pattern for the exception request
TYPE:
|
comments
|
Justification for why the exception is needed (e.g. "Needed for my XYZ analysis..")
TYPE:
|
expires_at
|
When the exception should expire (datetime object)
TYPE:
|
RETURNS | DESCRIPTION |
---|---|
dict[str, Any]
|
A dictionary containing: - |