Skip to content
  1. Aug 15, 2014
    • Christian Fobel's avatar
      Add test service... · c4ebcb4a
      Christian Fobel authored
      Usage
      =====
      
          python test_service.py <service bind addr> [service_time=1.]
      
      where:
      
       - `service bin addr` is the ZeroMQ address to bind to.
        - _e.g., `tcp://*:6789`_
       - `service_time` is the length of time to simulate a service run in
         seconds.
      c4ebcb4a
    • Christian Fobel's avatar
      Add README · 3d3dcfe1
      Christian Fobel authored
      v0.1
      3d3dcfe1
    • Christian Fobel's avatar
      Initial commit of ZeroMQ service demo plugin · 7389a39a
      Christian Fobel authored
      Initial commit of ZeroMQ service client plugin demo.
      
      The basic idea is to have a service exposed through a ZeroMQ interface,
      responding on a `zmq.REP` socket to the following two messages:
      
       - `start` -> `started`
       - `notify_completion` -> `completed`
      
      This provides a basic inter-process method for starting a service,
      followed by a notification upon completion.  The plugin provides a
      timeout option for each step in the DMF protocol to limit the amount of
      time spent waiting for a service to complete.
      
      __NB__ As of this commit, the MicroDrop app seems to freeze in the case
      where the service times out, after the error message indicating the
      protocol has failed is displayed.  This is likely due to threading
      issues, which will be resolved after the plug-ins are ported to run in
      separate processes.
      7389a39a