Skip to content

Commit

Permalink
fix: set process.title when using new bootstrap worker startup method
Browse files Browse the repository at this point in the history
  • Loading branch information
zackpollard committed May 17, 2024
1 parent a712854 commit 611067d
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions server/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,22 +32,21 @@ function bootstrap() {
return bootstrapImmichAdmin();
}
case 'immich': {
process.title = 'immich_server';
if (!process.env.IMMICH_WORKERS_INCLUDE) {
process.env.IMMICH_WORKERS_INCLUDE = 'api';
}
break;
}
case 'microservices': {
process.title = 'immich_microservices';
if (!process.env.IMMICH_WORKERS_INCLUDE) {
process.env.IMMICH_WORKERS_INCLUDE = 'microservices';
}
break;
}
default: {
for (const worker of getWorkers()) {
bootstrapWorker(worker);
}
}
}
process.title = 'immich';
for (const worker of getWorkers()) {
bootstrapWorker(worker);
}
}

Expand Down

0 comments on commit 611067d

Please sign in to comment.