agave-jobs/jobs-core/src/main/java/org/iplantc/service/jobs/managers/monitors/AbstractJobMonitor.java
/**
     * Updates the job record in the db and locally with the given status and logs any error that happens.
     *
     * @param status the new {@link JobStatusType}
     * @param errorMessage the event message to include in the job update event raised after this
     * @throws JobException if unable to persist the job status
     */
Updates the job record in the db and locally with the given status and logs any error that happens.
@param status the new  JobStatusType
@param errorMessage the event message to include in the job update event raised after this
@throws JobException if unable to persist the job status
Updates the job record in the db and locally with the given status and logs any error that happens . @param status the new JobStatusType @param errorMessage the event message to include in the job update event raised after this @throws JobException if unable to persist the job status
protected void updateJobStatus(JobStatusType status, String errorMessage) throws JobException {
        if (getJob() == null) return;
        try {
            setJob(getJobManager().updateStatus(getJob(), status, errorMessage));
        } catch(Throwable e) {
            throw new JobException("Failed to updated job " + this.job.getUuid() + " status to " + this.job.getStatus(), e);
        }
    }
protected void updateJobStatus ( JobStatusType status , String errorMessage ) throws JobException { if ( getJob ( ) == null ) return ; try { setJob ( getJobManager ( ) . updateStatus ( getJob ( ) , status , errorMessage ) ) ; } catch ( Throwable e ) { throw new JobException ( "Failed to updated job " + this . job . getUuid ( ) + " status to " + this . job . getStatus ( ) , e ) ; } }
Updates the job record in the db and locally with the given status and logs any error that happens.
Updates the job record in the db and locally with the given status and logs any error that happens .
// ignore if the job is null // update the job and the reference object here