Skip to content

Commit

Permalink
Use processName() for jobs stuff, only node cares about process.title
Browse files Browse the repository at this point in the history
  • Loading branch information
cannikin committed Aug 22, 2024
1 parent d746953 commit 2cbd5f7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/jobs/src/bins/rw-jobs-worker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ const parseArgs = (argv: string[]) => {
.help().argv
}

export const processTitle = ({
export const processName = ({
id,
queues,
}: {
Expand Down Expand Up @@ -108,7 +108,7 @@ export const getWorker = async ({
index,
clear,
workoff,
processName: processTitle({ id, queues: workerConfig.queue }),
processName: processName({ id, queues: workerConfig.queue }),
})
}

Expand All @@ -117,7 +117,7 @@ const main = async () => {

const worker = await getWorker({ index, id, clear, workoff })

process.title = processTitle({ id, queues: worker.queues })
process.title = processName({ id, queues: worker.queues })

worker.run().then(() => {
worker.logger.info(`[${process.title}] Worker finished, shutting down.`)
Expand Down

0 comments on commit 2cbd5f7

Please sign in to comment.