Skip to content

Commit

Permalink
Don't report if a job is taking a long time
Browse files Browse the repository at this point in the history
  • Loading branch information
robinp7720 committed Jan 23, 2024
1 parent c6b6620 commit 3f41623
Show file tree
Hide file tree
Showing 3 changed files with 105 additions and 10 deletions.
112 changes: 103 additions & 9 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
"sharp": "^0.32.6",
"socket.io": "^4.7.2",
"sqlite3": "^5.1.6",
"ssh2-sftp-client": "^10.0.3",
"uuid": "^9.0.1",
"which": "^4.0.0"
},
Expand Down
2 changes: 1 addition & 1 deletion src/lib/queue/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export default class Queue {
if (!this.jobs[job.id]) return callback();

let jobTimeout = setTimeout(() => {
logger.log('DEBUG', `Job ${job.id} is taking a long time. Maybe something is wrong?`, JSON.stringify(job));
//logger.log('DEBUG', `Job ${job.id} is taking a long time. Maybe something is wrong?`, JSON.stringify(job));
}, 20000);

this.jobs[job.id](job.attr)
Expand Down

0 comments on commit 3f41623

Please sign in to comment.