@Override public void setStatus(SRMUser user, String status) throws SRMException { if (status.equalsIgnoreCase("Done")) { done(user); } else { super.setStatus(user, status); } }
@Override protected void stateChanged(State oldState) { State state = getState(); logger.debug("State changed from " + oldState + " to " + getState()); if (state == State.READY) { try { getContainerRequest().resetRetryDeltaTime(); } catch (SRMInvalidRequestException ire) { logger.error(ire.toString()); } } try { if (state == State.FAILED && getFileId() != null) { String reason = getLastJobChange().getDescription(); getStorage().abortPut(getUser(), getFileId(), getSurl(), reason); } } catch (SRMException e) { logger.error("Failed to abort put after failure: {}", e.getMessage()); } super.stateChanged(oldState); }
@Override protected void stateChanged(State oldState) { logger.debug("State changed from " + oldState + " to " + getState()); super.stateChanged(oldState); }