Beispiel #1
0
    def process_test_result(self, uuid, priority):
        self.logger.info("Got result %r, checking for dependencies...", uuid)

        # te,mo pairs returned from dependents are valid matches, let's put
        # them on the queue just like the other process functions
        for te, mo in dependencies.get_run_list(uuid, db=self.db):
            self.submit(te, mo, priority, status='approved')
    def check_dependencies_and_push(self, target, priority, status):
        """ Check dependencies, and push them first if necessary """
        # run the test in its own directory
        for te, mo in dependencies.get_run_list(target):
            trid = self.get_result_code()
            depids = (str(item) for item in te.dependencies + mo.dependencies)

            self.logger.info("Submitting job <%s, %s, %s> priority %i" %
                             (te, mo, trid, priority))

            msg = network.Message(job=(str(te), str(mo)),
                                  jobid=trid,
                                  depends=tuple(depids),
                                  status=status)
            self.job_message(msg, tube=cf.TUBE_JOBS)
Beispiel #3
0
 def check_dependencies_and_push(self, target, priority=1, status='approved'):
     """ Check dependencies, and push them first if necessary """
     # run the test in its own directory
     for te, mo in dependencies.get_run_list(target, db=self.db):
         self.submit(te, mo, priority, status)