/** * Notify the task it has been rejected * * @param e any error associated with the rejection * @return true when the notification succeeds, false otherwise */ protected boolean taskRejected(RuntimeException e) { try { task.rejected(getElapsedTime(), e); return true; } catch (Throwable t) { log.warn("Unexpected error during 'rejected' for task: " + taskString, t); if (e != null) log.warn("Original reason for rejection of task: " + taskString, e); return false; } }