Skip to content

Commit

Permalink
[GOBBLIN-855] persist dag after addspec
Browse files Browse the repository at this point in the history
Closes apache#2711 from arjun4084346/persistdags
  • Loading branch information
arjun4084346 authored and jhsenjaliya committed Mar 24, 2020
1 parent 93dedca commit 4ae7e94
Showing 1 changed file with 2 additions and 0 deletions.
Expand Up @@ -596,6 +596,8 @@ private void submitJob(DagNode<JobExecutionPlan> dagNode) {
// blocks (by calling Future#get()) until the submission is completed.
Future addSpecFuture = producer.addSpec(jobSpec);
dagNode.getValue().setJobFuture(Optional.of(addSpecFuture));
//Persist the dag
this.dagStateStore.writeCheckpoint(this.dags.get(DagManagerUtils.generateDagId(dagNode)));

if (this.metricContext != null) {
getRunningJobsCounter(dagNode).inc();
Expand Down

0 comments on commit 4ae7e94

Please sign in to comment.