Skip to content

Commit

Permalink
search sequence timeout bug
Browse files Browse the repository at this point in the history
  • Loading branch information
asgray committed Nov 17, 2023
1 parent 936132a commit 901af4f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion services/SearchesService.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ const readSearchResults = ({ id }) => new Promise(
if (!searchRec) {
reject(Service.rejectResponse('Not Found', 404));
}

let dataDir = getDateDir(searchRec.started, id);
let nhmmer_out = dataDir + "/nhmmer.out"
let trf_out = dataDir + "/trf.out"
Expand Down Expand Up @@ -141,6 +141,7 @@ const readSearchResults = ({ id }) => new Promise(

} else if (jobRec.status === "DONE") {
if (!fs.existsSync(nhmmer_out)){
response.message = "Job Complete, Preparing Data"
resolve(Service.successResponse(response, 202));
}
// if file exists, handled below
Expand Down

0 comments on commit 901af4f

Please sign in to comment.