def _getJobInfo(self, cjDAO, workers, jobID):
<EOL>jobInfo = cjDAO.jobInfo(jobID)<EOL>runningCount = <NUM_LIT:0><EOL>for worker in workers:<EOL><INDENT>retCode = worker.poll()<EOL>if retCode is None:<EOL><INDENT>runningCount += <NUM_LIT:1><EOL><DEDENT><DEDENT>if runningCount > <NUM_LIT:0>:<EOL><INDENT>status = ClientJobsDAO.STATUS_RUNNING<EOL><DEDENT>else:<EOL><INDENT>status = ClientJobsDAO.STATUS_COMPLETED<EOL><DEDENT>jobInfo = jobInfo._replace(status=status)<EOL>if status == ClientJobsDAO.STATUS_COMPLETED:<EOL><INDENT>jobInfo = jobInfo._replace(<EOL>completionReason=ClientJobsDAO.CMPL_REASON_SUCCESS)<EOL><DEDENT>return jobInfo<EOL>
Return the job info for a job

        Parameters:
        -----------------------------------------------
        cjDAO:   client jobs database instance
        workers: list of workers for this job
        jobID:   which job ID

        retval: job info