Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…into dev
  • Loading branch information
tokebe committed Aug 11, 2023
2 parents 1f5a625 + 8577262 commit 0cd4fd6
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
6 changes: 3 additions & 3 deletions prod_revisions.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
> @biothings-explorer/[email protected] get_rev
> ./scripts/get_rev.sh

# Generated from "npm run get_rev" on Thu Aug 10 12:08:24 EDT 2023
https://github.com/biothings/biothings_explorer.git 566af8e 566af8e8b82519b9e56e2af41afd799b21eb4ac0
# Generated from "npm run get_rev" on Fri Aug 11 10:19:25 EDT 2023
https://github.com/biothings/biothings_explorer.git 5d6fe55 5d6fe5591ace16057f4fe0e7bd10a3754daacf63
https://github.com/biothings/api-respone-transform.js.git ed920f8 ed920f849054af32c77f1d13a0646852a1e2888a
https://github.com/biothings/call-apis.js.git c6c6421 c6c64216b0ae52ad293c6efae210b7dcda4956e3
https://github.com/biothings/smartapi-kg.js.git 874e120 874e1201efaa34a9a53434bae1cad2ade489b5c5
https://github.com/biothings/bte_trapi_query_graph_handler.git 32eb684 32eb684ee67b1908cbe15e64a8d307b8e2ea68e6
https://github.com/biothings/node-expansion.git 524df56 524df56767495bf397ecacb2f5a299a5b18b8bff
https://github.com/biothings/biolink-model.js.git c31f19f c31f19f35f6773b544eaad82747f680891aeaf6b
https://github.com/biothings/biomedical_id_resolver.js.git b7ffbe8 b7ffbe8b9e0e222c6d392232ef64a9abfb877ce3
https://github.com/biothings/biomedical_id_resolver.js.git 332b272 332b272c9af243ed7e2b2d6b9bd78550f85226aa
11 changes: 8 additions & 3 deletions src/controllers/threading/threadHandler.js
Original file line number Diff line number Diff line change
Expand Up @@ -234,9 +234,14 @@ async function runTask(req, task, route, res, useBullSync = true) {
// Have to reconstruct the error because Bull does some weirdness
const jobLatest = await queryQueue.getJob(jobOpts.jobId);
const reconstructedError = new Error();
reconstructedError.name = jobLatest.stacktrace[0].split(":")[0];
reconstructedError.message = jobLatest.stacktrace[0].split("\n")[0];
reconstructedError.stack = jobLatest.stacktrace[0];
try {
reconstructedError.name = jobLatest.stacktrace[0].split(":")[0];
reconstructedError.message = jobLatest.stacktrace[0].split("\n")[0];
reconstructedError.stack = jobLatest.stacktrace[0];
} catch (constructionError) {
reconstructedError.name = 'ThreadingError';
reconstructedError.message = JSON.stringify(jobLatest.stacktrace);
}
reject(reconstructedError);
}
});
Expand Down

0 comments on commit 0cd4fd6

Please sign in to comment.