Example #1
0
 def next_job( self ):
     data = stored_procedure_as_dict( "next_job" )
     if len( data ) > 0:
         self.current_job = data
         return True
     else:
         self.current_job = None
         return False
Example #2
0
def queue( url, org_id=None, batch=None ):
    ''' queue an item into the magpy queue
    '''
    stored_procedure_as_dict( "queue_job", domain( url ), 300, 6, url, 0, "", url, batch, org_id )