agave-jobs/jobs-core/src/main/java/org/iplantc/service/jobs/managers/monitors/AbstractJobMonitor.java
/**
     * Forwards the job status through {@link JobStatusType#CLEANING_UP} and, if archiving is disabled,
     * {@link JobStatusType#FINISHED}. This is called when the monitor detects the remote process is
     * no longer running.
     * @throws JobException if unable to persist the job status
     */
Forwards the job status through  JobStatusType#CLEANING_UP and, if archiving is disabled,
JobStatusType#FINISHED. This is called when the monitor detects the remote process is
no longer running.
@throws JobException if unable to persist the job status
Forwards the job status through JobStatusType#CLEANING_UP and if archiving is disabled JobStatusType#FINISHED . This is called when the monitor detects the remote process is no longer running . @throws JobException if unable to persist the job status
protected void updateStatusOfFinishedJob() throws JobException {
        Date logDate = new DateTime().toDate();
        getJob().setEndTime(logDate);
        updateJobStatus(JobStatusType.CLEANING_UP, "Job completion detected by job monitor.");
        if (!getJob().isArchiveOutput()) {
            log.debug("Job " + getJob().getUuid() + " will skip archiving at user request.");
            updateJobStatus(JobStatusType.FINISHED, "Job completed. Skipping archiving at user request.");
            log.debug("Job " + getJob().getUuid() + " finished.");
        }
    }
protected void updateStatusOfFinishedJob ( ) throws JobException { Date logDate = new DateTime ( ) . toDate ( ) ; getJob ( ) . setEndTime ( logDate ) ; updateJobStatus ( JobStatusType . CLEANING_UP , "Job completion detected by job monitor." ) ; if ( ! getJob ( ) . isArchiveOutput ( ) ) { log . debug ( "Job " + getJob ( ) . getUuid ( ) + " will skip archiving at user request." ) ; updateJobStatus ( JobStatusType . FINISHED , "Job completed. Skipping archiving at user request." ) ; log . debug ( "Job " + getJob ( ) . getUuid ( ) + " finished." ) ; } }
Forwards the job status through {@link JobStatusType#CLEANING_UP} and, if archiving is disabled,
 {@link JobStatusType#FINISHED}.
Forwards the job status through { @link JobStatusType#CLEANING_UP } and if archiving is disabled { @link JobStatusType#FINISHED } .