title: python design pattern queue with workers
body: <p>I'm currently working on a project that involves three components, </p>
  
  <p>an observer that check for changes in a directory,  a worker and an command line interface.</p>
  
  <p>What I want to achieve is:</p>
  
  <ul>
  <li><p>The observer, when a change happens send a string to the worker (add a job to the worker's queue).</p></li>
  <li><p>The worker has a queue of jobs and forever works on his queue.</p></li>
  <li><p>Now I want the possibility to run a python script to check the status of the worker (number of active jobs, errors and so on)</p></li>
  </ul>
  
  <p>I don't know how to achieve this with python in terms of which component to use and how to link the three components.</p>
  
  <p>I though as a singleton worker where the observer add a job to a queue but 1) I was not able to write a working code and 2) How can I fit the checker in?</p>
  
  <p>Another solution that I thought of may be multiple child processes from a father that has the queue but I'm a bit lost...</p>
  
  <p>Thanks for any advices</p>