All pastes #473011 Raw Edit

Someone

public text v1 · immutable
·published 2007-05-05 23:52 UTC
rendered paste body
    def get_job_by_id(self, job_id):
        """
        Returns a job by the job id. 
        
        Parameters:
        id -- the job id
        
        """
        
        
        import gc
        gc.set_debug(gc.DEBUG_LEAK)
        objects = gc.get_objects()
        log.err('GC: %s' % (len(objects)))

        jdict = self.jobdb.get_job_by_id(job_id)
        uuid = jdict['monitor_id']
        jdict['worker_info'] = self.monitordb.get_monitor(uuid)
        
        return jdict