Package park :: Package core :: Module service

Module service

source code

If an onSignal handler is found for message class Q then this is called immediately. Otherwise, the messages are placed into the ready queue to be processed by the onReady handler, or the onReadyMessage handler if no specific onReady handler is available.

The onSignal handler can delay processing until the computation reaches a ready state by queuing the signal on self.queue. When the ready queue is processed, this will invoke the onReady handler associated with the signal.

Classes
  Request
Park service request abstract base class.
  Service
Park service abstract base class.
Functions
 
request(cls, **kw)
Generate a service proxy for a request to a service.
source code
Function Details

request(cls, **kw)

source code 

Generate a service proxy for a request to a service.

Individual services may have specialized request blocks, but most of them use a simple request format that does not require a special class.

Returns a generic request, with service name and version set from the associated service class. The additional keyword arguments form the text of the request.