public void reportJobStatus(long job, boolean success) {
		synchronized (lock) {
			if (success) {
				runningJobs.remove(job);
			} else {
				pendingJobs.add(job);
			}
		}
	}
Report job status.

@param job the job id
@param success true if job execution was successful
yarn/yarn/custom-amservice/src/main/java/org/springframework/yarn/examples/CustomAppmaster.java