Skip to content

Commit

Permalink
chore: add logs
Browse files Browse the repository at this point in the history
  • Loading branch information
Jadiscke committed Jul 1, 2022
1 parent 43d2e4b commit cc5e7b6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test.mjs → bull-script.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ const URL = process.env.URL;
const START_PAGE = process.env.START_PAGE;
const END_PAGE = process.env.END_PAGE;

console.log('Starting...')
console.log('Configs: ', URL, ' / ', START_PAGE, ' - ', END_PAGE)

async function retryJobs(jobsArray) {
await Promise.all(jobsArray.map( async (jobId)=> {
await fetch(`${URL}/api/queues/UseCaseJob/${jobId}/retry`, {method: 'put'})
Expand Down
5 changes: 5 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,10 @@
"dependencies": {
"dotenv": "^16.0.1",
"node-fetch": "^3.2.4"
},
"type": "module",
"version": "0.0.0",
"scripts": {
"start": "node bull-script.mjs"
}
}

0 comments on commit cc5e7b6

Please sign in to comment.