agave-jobs/jobs-core/src/main/java/org/iplantc/service/jobs/managers/JobManager.java
/**
     * Determines whether the job has completed archiving and can thus refer to the archive location for requests
     * for its output data.
     *
     * @param job the job to query about archving status
     * @return true if all job output was archived, false otherwise
     */
Determines whether the job has completed archiving and can thus refer to the archive location for requests
for its output data.

@param job the job to query about archving status
@return true if all job output was archived, false otherwise
Determines whether the job has completed archiving and can thus refer to the archive location for requests for its output data . @param job the job to query about archving status @return true if all job output was archived false otherwise
public static boolean isJobDataFullyArchived(Job job) {
        if (job.isArchiveOutput()) {
            if (job.getStatus() == JobStatusType.ARCHIVING_FINISHED) {
                return true;
            } else if (job.getStatus() == JobStatusType.FINISHED) {
                for (JobEvent event : job.getEvents()) {
                    if (StringUtils.equalsIgnoreCase(event.getStatus(), JobStatusType.ARCHIVING_FINISHED.name())) {
                        return true;
                    }
                }
            }
        }
        return false;
    }
public static boolean isJobDataFullyArchived ( Job job ) { if ( job . isArchiveOutput ( ) ) { if ( job . getStatus ( ) == JobStatusType . ARCHIVING_FINISHED ) { return true ; } else if ( job . getStatus ( ) == JobStatusType . FINISHED ) { for ( JobEvent event : job . getEvents ( ) ) { if ( StringUtils . equalsIgnoreCase ( event . getStatus ( ) , JobStatusType . ARCHIVING_FINISHED . name ( ) ) ) { return true ; } } } } return false ; }
Determines whether the job has completed archiving and can thus refer to the archive location for requests
 for its output data.
Determines whether the job has completed archiving and can thus refer to the archive location for requests for its output data .
// anything else means the job failed, hasn't reached a point of // archiving, is in process, or something happened.