Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
sanoel committed Jul 16, 2024
1 parent 60859a9 commit 23ec4bf
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@qlever-llc/target-helper",
"version": "1.6.6",
"version": "2.0.0",
"description": "A Trellis microservice to fill in around Target integration",
"author": "Andrew Balmos <[email protected]>",
"license": "Apache-2.0",
Expand Down Expand Up @@ -119,4 +119,4 @@
"volta": {
"node": "20.13.1"
}
}
}
9 changes: 7 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,16 @@ import { Service } from '@oada/jobs';
jobHandler as asnJobHandler,
startJobCreator as asnStartJobCreator,
} from './asnJob.js';
*/
*/
import {
jobHandler as pdfJobHandler,
startJobCreator as pdfStartJobCreator,
} from './pdfJob.js';

import {
jobHandler as transcriptionOnlyJobHandler,
} from './transcriptionOnly.js';

const error = debug('target-helper:error');
const info = debug('target-helper:info');
const trace = debug('target-helper:trace');
Expand Down Expand Up @@ -83,10 +87,11 @@ await Promise.all(
config.get('timeouts.pdf')*jobsConcurrency,
pdfJobHandler,
);

service.on(
'transcription-only',
config.get('timeouts.pdf')*jobsConcurrency,
pdfJobHandler,
transcriptionOnlyJobHandler,
);
// Service.on('asn', config.get('timeouts.asn'), asnJobHandler);

Expand Down
2 changes: 0 additions & 2 deletions src/pdfJob.ts
Original file line number Diff line number Diff line change
Expand Up @@ -237,8 +237,6 @@ export async function composeResult(
return job.result;
}



async function handleTargetTimeout({
jobId,
oada,
Expand Down

0 comments on commit 23ec4bf

Please sign in to comment.