def _resumeJobNoRetries(self, conn, jobID, alreadyRunning):
<EOL>if alreadyRunning:<EOL><INDENT>initStatus = self.STATUS_TESTMODE<EOL><DEDENT>else:<EOL><INDENT>initStatus = self.STATUS_NOTSTARTED<EOL><DEDENT>assignments = [<EOL>'<STR_LIT>',<EOL>'<STR_LIT>',<EOL>'<STR_LIT>',<EOL>'<STR_LIT>',<EOL>'<STR_LIT>',<EOL>'<STR_LIT>',<EOL>'<STR_LIT>',<EOL>'<STR_LIT>',<EOL>'<STR_LIT>',<EOL>'<STR_LIT>',<EOL>'<STR_LIT>',<EOL>'<STR_LIT>',<EOL>'<STR_LIT>',<EOL>]<EOL>assignmentValues = [initStatus]<EOL>if alreadyRunning:<EOL><INDENT>assignments += ['<STR_LIT>', '<STR_LIT>',<EOL>'<STR_LIT>']<EOL>assignmentValues.append(self._connectionID)<EOL><DEDENT>else:<EOL><INDENT>assignments += ['<STR_LIT>', '<STR_LIT>']<EOL><DEDENT>assignments = '<STR_LIT:U+002CU+0020>'.join(assignments)<EOL>query = '<STR_LIT>''<STR_LIT>'% (self.jobsTableName, assignments)<EOL>sqlParams = assignmentValues + [jobID, self.STATUS_COMPLETED]<EOL>numRowsAffected = conn.cursor.execute(query, sqlParams)<EOL>assert numRowsAffected <= <NUM_LIT:1>, repr(numRowsAffected)<EOL>if numRowsAffected == <NUM_LIT:0>:<EOL><INDENT>self._logger.info(<EOL>"<STR_LIT>"<EOL>"<STR_LIT>"<EOL>"<STR_LIT>", jobID)<EOL><DEDENT>return<EOL>
Resumes processing of an existing job that is presently in the
        STATUS_COMPLETED state.

        NOTE: this is primarily for resuming suspended Production and Stream Jobs; DO
         NOT use it on Hypersearch jobs.

        This prepares an existing job entry to resume processing. The CJM is always
        periodically sweeping the jobs table and when it finds a job that is ready
        to run, it will proceed to start it up on Hadoop.

        Parameters:
        ----------------------------------------------------------------
        conn:            Owned connection acquired from ConnectionFactory.get()
        jobID:          jobID of the job to resume
        alreadyRunning: Used for unit test purposes only. This inserts the job
                         in the running state. It is used when running a worker
                         in standalone mode without hadoop.

        raises:         Throws a RuntimeError if no rows are affected. This could
                        either be because:
                          1) Because there was not matching jobID
                          2) or if the status of the job was not STATUS_COMPLETED.

        retval:            nothing