| Trees | Indices | Help | 
        
  | 
  
|---|
| 
       | 
  
               object --+    
                        |    
base.DBConnectorComponent --+
                            |
                           BuildRequestsConnectorComponent
A DBConnectorComponent to handle buildrequests.  An instance is 
  available at master.db.buildrequests.
Build Requests are represented as dictionaries with keys 
  brid, buildsetid, buildername, 
  priority, claimed (boolean), 
  claimed_at, mine (boolean), 
  complete, results, submitted_at, 
  and complete_at.  The two time parameters 
  (*_at) are presented as datetime objects.
| Instance Methods | |||
      
  | 
  |||
      
  | 
  |||
      
  | 
  |||
      
  | 
  |||
      
  | 
  |||
      
  | 
  |||
      
  | 
  |||
| 
     Inherited from  Inherited from   | 
  |||
| Class Variables | |
| 
     Inherited from   | 
  
| Instance Variables | |
| 
     Inherited from   | 
  
| Properties | |
| 
     Inherited from   | 
  
| Method Details | 
  
 Get a single BuildRequest, in the format described above.  Returns 
   Note that build requests are not cached, as the values in the database are not fixed. 
  | 
  
 Get a list of build requests matching the given characteristics.  Note
  that  The  A build is considered completed if its  Since this method is often used to detect changed build requests, it always bypasses the cache. 
  | 
  
 Try to "claim" the indicated build requests for this 
  buildmaster instance.  The resulting deferred will fire normally on 
  success, or fail with  As of 0.8.5, this method can no longer be used to re-claim build requests. All given brids must be unclaimed. Use reclaimBuildRequests to reclaim. On database backends that do not enforce referential integrity (e.g., SQLite), this method will not prevent claims for nonexistent build requests. On database backends that do not support transactions (MySQL), this method will not properly roll back any partial claims made before an AlreadyClaimedError was generated. 
  | 
  
 Re-claim the given build requests, updating the timestamp, but 
  checking that the requsts are owned by this master.  The resulting 
  deferred will fire normally on success, or fail with  
  | 
  
 Release this master's claim on all of the given build requests. This will not unclaim requests that are claimed by another master, but will not fail in this case. The method does not check whether a request is completed. 
  | 
  
 Complete a set of build requests, all of which are owned by this master instance. This will fail with NotClaimedError if the build request is already completed or does not exist. 
  | 
  
 Find any incomplete claimed builds which are older than 
   This is intended to catch builds that were claimed by a master which has since disappeared. As a side effect, it will log a message if any requests are unclaimed. 
  | 
| Trees | Indices | Help | 
        
  | 
  
|---|
| Generated by Epydoc 3.0.1 on Sun Jul 17 13:45:20 2011 | http://epydoc.sourceforge.net |