Beispiel #1
0
 def _run_single_job(self, job):
     print("- {}:".format(job.name), end=' ')
     job_state, job_result = run_job_if_possible(
         self.session, self.runner, self.config, job)
     print("{0}".format(job_result.outcome))
     if job_result.comments is not None:
         print("comments: {0}".format(job_result.comments))
     if job_state.readiness_inhibitor_list:
         print("inhibitors:")
     for inhibitor in job_state.readiness_inhibitor_list:
         print("  * {}".format(inhibitor))
     self.session.update_job_result(job, job_result)
Beispiel #2
0
    def _really_run(self):
        """
        Internal method called in executor context.

        Runs a job with run_job_if_possible() and returns the result
        """
        # Run the job if possible
        job_state, job_result = run_job_if_possible(
            self._session, self._runner, self._service._config, self._job,
            # Don't call update on your own please
            update=False)
        return job_result
Beispiel #3
0
 def _run_single_job(self, job):
     print("- {}:".format(job.id), end=' ')
     sys.stdout.flush()
     job_state, job_result = run_job_if_possible(self.session, self.runner,
                                                 self.config, job)
     print("{0}".format(job_result.outcome))
     sys.stdout.flush()
     if job_result.comments is not None:
         print("comments: {0}".format(job_result.comments))
     if job_state.readiness_inhibitor_list:
         print("inhibitors:")
     for inhibitor in job_state.readiness_inhibitor_list:
         print("  * {}".format(inhibitor))
     self.session.update_job_result(job, job_result)
Beispiel #4
0
    def _really_run(self):
        """
        Internal method called in executor context.

        Runs a job with run_job_if_possible() and returns the result
        """
        # Run the job if possible
        job_state, job_result = run_job_if_possible(
            self._session,
            self._runner,
            self._service._config,
            self._job,
            # Don't call update on your own please
            update=False)
        return job_result