def __checkCancelation(self):
<EOL>print("<STR_LIT>", file=sys.stderr)<EOL>jobCancel = self._jobsDAO.jobGetFields(self._jobID, ['<STR_LIT>'])[<NUM_LIT:0>]<EOL>if jobCancel:<EOL><INDENT>self._cmpReason = ClientJobsDAO.CMPL_REASON_KILLED<EOL>self._isCanceled = True<EOL>self._logger.info("<STR_LIT>",<EOL>self._modelID, self._jobID)<EOL><DEDENT>else:<EOL><INDENT>stopReason = self._jobsDAO.modelsGetFields(self._modelID, ['<STR_LIT>'])[<NUM_LIT:0>]<EOL>if stopReason is None:<EOL><INDENT>pass<EOL><DEDENT>elif stopReason == ClientJobsDAO.STOP_REASON_KILLED:<EOL><INDENT>self._cmpReason = ClientJobsDAO.CMPL_REASON_KILLED<EOL>self._isKilled = True<EOL>self._logger.info("<STR_LIT>",<EOL>self._modelID)<EOL><DEDENT>elif stopReason == ClientJobsDAO.STOP_REASON_STOPPED:<EOL><INDENT>self._cmpReason = ClientJobsDAO.CMPL_REASON_STOPPED<EOL>self._isCanceled = True<EOL>self._logger.info("<STR_LIT>", self._modelID)<EOL><DEDENT>else:<EOL><INDENT>raise RuntimeError ("<STR_LIT>" % (stopReason))<EOL><DEDENT><DEDENT>
Check if the cancelation flag has been set for this model
        in the Model DB