if (jobMap.containsKey(hadoopJobId)) {
setJobState(jobMap.get(hadoopJobId), JobMetadata.DONE);
} else {
MetaGraphTx tx = metaGraph.newTransaction();
JobMetadata jobMetadata = tx.getJob(jobId);
JobMetadata childJobMetadata = tx.createJob(jobMetadata);
childJobMetadata.setName("faunusHadoopJob");
childJobMetadata.setState(JobMetadata.DONE);
childJobMetadata.setProgress(1.0f);
childJobMetadata.setMapreduceJobId(hadoopJobId.toString());
tx.commit();