ProductionClient
Class that contains client access to the production DB handler.
- class DIRAC.ProductionSystem.Client.ProductionClient.ProductionClient(**kwargs)
Bases:
DIRAC.Core.Base.Client.Client
Exposes the functionality available in the ProductionSystem/ProductionManagerHandler
- __init__(**kwargs)
Simple constructor
- addProductionStep(prodStep)
Add a production step and update the production description
- Parameters
prodStep (object) – the production step, i.e. a ProductionStep object describing the transformation
- property call
To be removed once we’re sure self.call has been removed
- Type
Deprecated
- executeRPC(*parms, **kws)
This method extracts some parameters from kwargs that are used as parameter of the constructor or RPCClient. Unfortunately, only a few of all the available parameters of BaseClient are exposed.
- Parameters
rpc – if an RPC client is passed, use that one
timeout – we can change the timeout on a per call bases. Default is self.timeout
url – We can specify which url to use
- getClientKWArgs()
Returns a copy of the connection arguments
- getProductionTransformations(prodName, condDict=None, older=None, newer=None, timeStamp=None, orderAttribute=None, limit=10000)
- Gets all the production transformations for a production, incrementally.
“limit” here is just used to determine the offset.
- Parameters
prodName (str) – the production name
- Returns
the list of the transformations associated to the production
- getProductions(condDict=None, older=None, newer=None, timeStamp=None, orderAttribute=None, limit=100)
Gets all the productions in the system, incrementally. “limit” here is just used to determine the offset.
- getServer()
Getter for the server url. Useful ?
- httpsClient
alias of
DIRAC.Core.Tornado.Client.TornadoClient.TornadoClient
- setProductionStatus(prodID, status)
Sets the status of a production
- setServer(url)
Set the server URL used by default
- Parameters
url – url of the service