Operation
- mod:
Operation
Operation implementation
- class DIRAC.RequestManagementSystem.Client.Operation.Operation(fromDict=None)
Bases:
object
- Parameters:
OperationID (int) – OperationID as read from DB backend
RequestID (int) – parent RequestID
Status (str) – execution status
Type (str) – operation to perform
Arguments (str) – additional arguments
SourceSE (str) – source SE name
TargetSE (str) – target SE names as comma separated list
Catalog (str) – catalog to use as comma separated list
Error (str) – error string if any
parent (Request.Request) – parent Request instance
It is managed by SQLAlchemy, so the RequestID, OperationID should never be set by hand (except when constructed from JSON of course…) In principle, the _parent attribute could be totally managed by SQLAlchemy. However, it is set only when inserted into the DB, this is why I manually set it in the Request _notify
- ALL_STATES = ('Queued', 'Waiting', 'Scheduled', 'Assigned', 'Failed', 'Done', 'Canceled')
- ATTRIBUTE_NAMES = ['OperationID', 'RequestID', 'Type', 'Status', 'Arguments', 'Order', 'SourceSE', 'TargetSE', 'Catalog', 'Error', 'CreationTime', 'SubmitTime', 'LastUpdate']
- property Arguments
- property Catalog
catalog prop
- property CreationTime
operation creation time prop
- Error
- FINAL_STATES = ('Failed', 'Done', 'Canceled')
- property LastUpdate
last update prop
- MAX_FILES = 10000
- OperationID
- property Order
order prop
- RequestID
- SourceSE
- property Status
Status prop
- property SubmitTime
subrequest’s submit time prop
- TargetSE
- Type
- __init__(fromDict=None)
c’tor
- Parameters:
self – self reference
fromDict (dict) – attributes dictionary
- addFile(opFile)
add :opFile: to operation
Warning
You cannot add a File object that has already been added to another operation. They must be different objects
- property catalogList
helper property returning catalogs as list
- fileStatusList()
get list of files statuses
- property sourceSEList
helper property returning source SEs as a list
- property targetSEList
helper property returning target SEs as a list
- toJSON()
Returns the JSON description string of the Operation