6162636465666768697071
JobEntity job = commandContext .getJobManager() .findJobById(jobId); if (job != null) { if (job.isInInconsistentLockState()) { job.resetLock(); } job.setRetries(retries); } else { throw new ProcessEngineException("No job found with id '" + jobId + "'.");