def setupJobAfterFailure(self, config):
        self.remainingRetryCount = max(0, self.remainingRetryCount - 1)
        logger.warn("Due to failure we are reducing the remaining retry count of job %s to %s",
                    self.jobStoreID, self.remainingRetryCount)
        # Set the default memory to be at least as large as the default, in
        # case this was a malloc failure (we do this because of the combined
        # batch system)
        if self.memory < config.defaultMemory:
            self.memory = config.defaultMemory
            logger.warn("We have increased the default memory of the failed job to %s bytes",
                        self.memory)
Attempt to fix up *ary* for switching from *oldty* to *newty*.
dataset/ETHPy150Open BD2KGenomics/toil/src/toil/jobWrapper.py/JobWrapper.setupJobAfterFailure--crossover with--dataset/ETHPy150Open numba/numba/numba/targets/arrayobj.py/_change_dtype