Skip to content

Commit

Permalink
make one process (gcdata) ts
Browse files Browse the repository at this point in the history
  • Loading branch information
howardchung committed Dec 5, 2023
1 parent 1332efd commit 1e4370d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion ecosystem.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ let arr = [
},
{
"name": "gcdata",
"script": "svc/gcdata.mjs",
"script": "svc/gcdata.mts",
"interpreter": "node_modules/.bin/tsx",
"group": "backend",
},
{
Expand Down
4 changes: 3 additions & 1 deletion svc/gcdata.mjs → svc/gcdata.mts
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,12 @@ import utility from '../util/utility.mjs';
const { getRetrieverArr } = utility;
const retrieverArr = getRetrieverArr();

async function processGcData(job) {
async function processGcData(job: any) {
job.useGcDataArr = true;
await getGcData(job);
}

console.log('[GCDATA] starting');
queue.runQueue(
'gcQueue',
Number(config.GCDATA_PARALLELISM) * retrieverArr.length,
Expand Down

0 comments on commit 1e4370d

Please sign in to comment.