agave-jobs/jobs-core/src/main/java/org/iplantc/service/jobs/dao/JobDao.java
/**
	 * Refreshes a stale job. This is helpful to call after a failed concurrent modification update to get the
     * latest revision number for future updates.
	 * @param job the updated job to refresh
	 * @throws JobException if unable to refresh. This is usually due to a subsequent concurrent modification issue
	 */
Refreshes a stale job. This is helpful to call after a failed concurrent modification update to get the
latest revision number for future updates.
@param job the updated job to refresh
@throws JobException if unable to refresh. This is usually due to a subsequent concurrent modification issue
Refreshes a stale job . This is helpful to call after a failed concurrent modification update to get the latest revision number for future updates . @param job the updated job to refresh @throws JobException if unable to refresh . This is usually due to a subsequent concurrent modification issue
public static void refresh(Job job) throws JobException
	{
		try
		{
			Session session = getSession();
			session.clear();
			session.refresh(job);
			session.flush();
		} catch (HibernateException ex) {
		    log.error("Concurrency issue with job " + job.getUuid());
			throw new JobException(ex);
		}
		finally {
			try { HibernateUtil.commitTransaction();} catch (Exception ignored) {}
		}
	}
public static void refresh ( Job job ) throws JobException { try { Session session = getSession ( ) ; session . clear ( ) ; session . refresh ( job ) ; session . flush ( ) ; } catch ( HibernateException ex ) { log . error ( "Concurrency issue with job " + job . getUuid ( ) ) ; throw new JobException ( ex ) ; } finally { try { HibernateUtil . commitTransaction ( ) ; } catch ( Exception ignored ) { } } }
Refreshes a stale job.
Refreshes a stale job .