1
0
Fork 0
mirror of https://github.com/immich-app/immich.git synced 2025-01-16 16:56:46 +01:00

fix: when using old script args, just set the workers include var (#9552)

* fix: when using old script args, just set the workers include var and move on

* fix: set process.title when using new bootstrap worker startup method
This commit is contained in:
Zack Pollard 2024-05-17 15:10:57 +01:00 committed by GitHub
parent 85aca2bb54
commit c8aa6a62c2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -32,19 +32,22 @@ function bootstrap() {
return bootstrapImmichAdmin();
}
case 'immich': {
process.title = 'immich_server';
return bootstrapWorker('api');
if (!process.env.IMMICH_WORKERS_INCLUDE) {
process.env.IMMICH_WORKERS_INCLUDE = 'api';
}
break;
}
case 'microservices': {
process.title = 'immich_microservices';
return bootstrapWorker('microservices');
}
default: {
for (const worker of getWorkers()) {
bootstrapWorker(worker);
if (!process.env.IMMICH_WORKERS_INCLUDE) {
process.env.IMMICH_WORKERS_INCLUDE = 'microservices';
}
break;
}
}
process.title = 'immich';
for (const worker of getWorkers()) {
bootstrapWorker(worker);
}
}
void bootstrap();