public Void execute(CommandContext commandContext) { jobEntity.setRetries(-100); return null; } });
protected void decrementRetries(JobEntity job) { if (exception == null || shouldDecrementRetriesFor(exception)) { job.setRetries(job.getRetries() - 1); } }
protected void decrementRetries(JobEntity job) { if (exception == null || shouldDecrementRetriesFor(exception)) { job.setRetries(job.getRetries() - 1); } }
protected void initializeRetries(JobEntity job, int retries) { LOG.debugInitiallyAppyingRetryCycleForJob(job.getId(), retries); job.setRetries(retries); }
protected void initializeRetries(JobEntity job, int retries) { LOG.debugInitiallyAppyingRetryCycleForJob(job.getId(), retries); job.setRetries(retries); }
public Void execute(CommandContext commandContext) { JobEntity jobEntity = getJobEntity(jobId); jobEntity.setRetries(0); jobEntity.setExceptionMessage("Something bad happened"); jobEntity.setExceptionStacktrace(ExceptionUtil.getExceptionStacktrace(new RuntimeException("Something bad happened"))); return null; } });
public Void execute(CommandContext commandContext) { JobEntity timer = commandContext.getDbEntityManager().selectById(JobEntity.class, job.getId()); timer.setRetries(retries); return null; }
public Void execute(CommandContext commandContext) { jobEntity.setRetries(-100); return null; } });
protected void setJobRetriesByJobId(String jobId, int retries, CommandContext commandContext) { JobEntity job = commandContext .getJobManager() .findJobById(jobId); if (job != null) { for (CommandChecker checker : commandContext.getProcessEngineConfiguration().getCommandCheckers()) { checker.checkUpdateRetriesJob(job); } if (job.isInInconsistentLockState()) { job.resetLock(); } int oldRetries = job.getRetries(); job.setRetries(retries); PropertyChange propertyChange = new PropertyChange(RETRIES, oldRetries, job.getRetries()); commandContext.getOperationLogManager().logJobOperation(getLogEntryOperation(), job.getId(), job.getJobDefinitionId(), job.getProcessInstanceId(), job.getProcessDefinitionId(), job.getProcessDefinitionKey(), propertyChange); } else { throw new ProcessEngineException("No job found with id '" + jobId + "'."); } }
protected void setJobRetriesByJobId(String jobId, int retries, CommandContext commandContext) { JobEntity job = commandContext .getJobManager() .findJobById(jobId); if (job != null) { for (CommandChecker checker : commandContext.getProcessEngineConfiguration().getCommandCheckers()) { checker.checkUpdateRetriesJob(job); } if (job.isInInconsistentLockState()) { job.resetLock(); } int oldRetries = job.getRetries(); job.setRetries(retries); PropertyChange propertyChange = new PropertyChange(RETRIES, oldRetries, job.getRetries()); commandContext.getOperationLogManager().logJobOperation(getLogEntryOperation(), job.getId(), job.getJobDefinitionId(), job.getProcessInstanceId(), job.getProcessDefinitionId(), job.getProcessDefinitionKey(), propertyChange); } else { throw new ProcessEngineException("No job found with id '" + jobId + "'."); } }
protected void decrementRetries(JobEntity job) { if (exception == null || shouldDecrementRetriesFor(exception)) { job.setRetries(job.getRetries() - 1); } }
protected void initializeRetries(JobEntity job, int retries) { LOG.debugInitiallyAppyingRetryCycleForJob(job.getId(), retries); job.setRetries(retries); }
job.setJobHandlerType(resolveJobHandlerType(context)); job.setExclusive(resolveExclusive(context)); job.setRetries(resolveRetries(context)); job.setDuedate(resolveDueDate(context));
job.setJobHandlerType(resolveJobHandlerType(context)); job.setExclusive(resolveExclusive(context)); job.setRetries(resolveRetries(context)); job.setDuedate(resolveDueDate(context));
public Void execute(CommandContext commandContext) { JobEntity jobEntity = getJobEntity(jobId); jobEntity.setRetries(0); jobEntity.setExceptionMessage("Something bad happened"); jobEntity.setExceptionStacktrace(ExceptionUtil.getExceptionStacktrace(new RuntimeException("Something bad happened"))); return null; } });
public Void execute(CommandContext commandContext) { JobEntity timer = commandContext.getDbEntityManager().selectById(JobEntity.class, job.getId()); timer.setRetries(retries); return null; }
protected void setJobRetriesByJobId(String jobId, int retries, CommandContext commandContext) { JobEntity job = commandContext .getJobManager() .findJobById(jobId); if (job != null) { for (CommandChecker checker : commandContext.getProcessEngineConfiguration().getCommandCheckers()) { checker.checkUpdateJob(job); } if (job.isInInconsistentLockState()) { job.resetLock(); } int oldRetries = job.getRetries(); job.setRetries(retries); PropertyChange propertyChange = new PropertyChange(RETRIES, oldRetries, job.getRetries()); commandContext.getOperationLogManager().logJobOperation(getLogEntryOperation(), job.getId(), job.getJobDefinitionId(), job.getProcessInstanceId(), job.getProcessDefinitionId(), job.getProcessDefinitionKey(), propertyChange); } else { throw new ProcessEngineException("No job found with id '" + jobId + "'."); } }
job.setJobHandlerType(resolveJobHandlerType(context)); job.setExclusive(resolveExclusive(context)); job.setRetries(resolveRetries(context)); job.setDuedate(resolveDueDate(context));