Skip to content

Commit

Permalink
Add pid
Browse files Browse the repository at this point in the history
  • Loading branch information
pastelsky committed Jan 3, 2024
1 parent df1691e commit 8439402
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions server/workers/docs-builder-worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ setInterval(() => {
"s",
);
}

process.exit(0);
}, 5000);

function promiseTimeout(promise, ms = 10000) {
Expand All @@ -41,9 +39,10 @@ function promiseTimeout(promise, ms = 10000) {
module.exports = async (job) => {
try {
logger.info(
"Docs Worker: Starting to build in worker %s %s",
"Docs Worker: Starting to build in worker %s %s %o",
job.data.packageJSON.name,
job.data.packageJSON.version,
{ pid: process.pid },
);
workerActiveTime = Date.now();
const results = await promiseTimeout(
Expand Down

0 comments on commit 8439402

Please sign in to comment.