runBarrier.setReleased();
UpdateSpec tempSpec = new UpdateSpec(rootJobKey);
tempSpec.getOrCreateTransaction("releaseRunBarrier").includeBarrier(runBarrier);
backEnd.save(tempSpec, jobRecord.getQueueSettings());
State jobState = jobRecord.getState();
switch (jobState) {
case WAITING_TO_RUN:
case RETRY:
// OK, proceed
break;