Package park :: Package fitting :: Module fit :: Class LocalQueue

Class LocalQueue

source code


Simple interface to the local job queue. Currently supports start and wait. Needs to support stop and status. Also, needs to be a proper queue, and needs to allow jobs to run in separate processes according to priority, etc. All the essentials of the remote queuing system without the remote calls.

Unlike the remote queue, the local queue need not maintain persistence.

Instance Methods
 
start(self, job) source code
 
wait(self, interval=0.1)
Wait for the job to complete.
source code

Inherited from object: __delattr__, __getattribute__, __hash__, __init__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Class Variables
  running = False
Properties

Inherited from object: __class__

Method Details

wait(self, interval=0.1)

source code 
Wait for the job to complete. This is used in scripts to impose a synchronous interface to the fitting service.