From 3c775588b9b32ede448495e35131621a5a705a76 Mon Sep 17 00:00:00 2001 From: Lukas Mueller Date: Wed, 9 Oct 2013 22:42:26 -0400 Subject: [PATCH] fix an issue with a race condition - blast run tempfiles need to stick around - do_not_cleanup(1) ! --- lib/SGN/Controller/AJAX/Blast.pm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/SGN/Controller/AJAX/Blast.pm b/lib/SGN/Controller/AJAX/Blast.pm index 2c64dcb49..f2a15cd55 100644 --- a/lib/SGN/Controller/AJAX/Blast.pm +++ b/lib/SGN/Controller/AJAX/Blast.pm @@ -57,6 +57,7 @@ sub run : Path('/tools/blast/run') Args(0) { my $jobid = basename($seqfile); + print STDERR "JOB ID CREATED: $jobid\n"; my $seq_count; @@ -223,6 +224,8 @@ sub run : Path('/tools/blast/run') Args(0) { print STDERR "Saving job state to $seqfile.job for id ".$job->job_id()."\n"; + $job->do_not_cleanup(1); + nstore( $job, $seqfile.".job" ) or die 'could not serialize job object'; -- 2.11.4.GIT