Class that contains client access to the PilotsLogging handler.

class DIRAC.WorkloadManagementSystem.Client.PilotsLoggingClient.PilotsLoggingClient(**kwargs)

Bases: DIRAC.Core.Base.Client.Client

Implementation of interface of Pilots Logging service. Client class should be used to communicate with PilotsLogging Service



Parameters:kwargs – just stored as an attribute and passed when creating the RPCClient
addPilotsLogging(pilotUUID, timestamp, source, phase, status, messageContent)

Add new Pilots Logging entry

  • pilotUUID – Pilot reference
  • status – Pilot status
  • minorStatus – Additional status information
  • timestamp – Date and time of status event
  • source – Source of status information

Delete all Logging entries for Pilot

Parameters:pilotUUID – Pilot reference
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.

  • 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

Get all Logging entries for Pilot

Parameters:pilotUUID – Pilot reference

Getter for the server url. Useful ?


Set the server URL used by default

Parameters:url – url of the service

Specify the timeout of the call. Forwarded to RPCClient

param int timeout:
 timeout for the RPC calls

Deprecated: Please use self._getRPC(timeout) or self.timeout=<value>