[Bio] / FortyEightMeta / mg_load_done.pl Repository:
ViewVC logotype

Diff of /FortyEightMeta/mg_load_done.pl

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.2, Wed Jun 11 21:16:42 2008 UTC revision 1.3, Thu Jun 12 21:35:53 2008 UTC
# Line 39  Line 39 
39    
40  print "MG load is done\n";  print "MG load is done\n";
41    
42    #
43    # Need to check status of the sims. If there are any errors, fail the
44    # pipeline stage.
45    #
46    
47    my $status_db = FortyEightMeta::SimStatusDB->new($job_id);
48    
49    my @err_jobs = $status_db->get_tasks_where("status != ?", 'load_complete');
50    if (@err_jobs)
51    {
52        print "The following jobs had errors\n";
53        print Dumper(\@err_jobs);
54        $stage->fatal("Errors detected during sims runs");
55    }
56    
57  $stage->run_process('create_indexes', "$FIG_Config::bin/mg_create_db_indexes", $jobdir);  $stage->run_process('create_indexes', "$FIG_Config::bin/mg_create_db_indexes", $jobdir);
58    
59  $stage->set_status("complete");  $stage->set_status("complete");

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

MCS Webmaster
ViewVC Help
Powered by ViewVC 1.0.3