mirror of
https://github.com/immich-app/immich.git
synced 2025-06-02 01:37:48 +02: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:
parent
85aca2bb54
commit
c8aa6a62c2
@ -32,19 +32,22 @@ function bootstrap() {
|
|||||||
return bootstrapImmichAdmin();
|
return bootstrapImmichAdmin();
|
||||||
}
|
}
|
||||||
case 'immich': {
|
case 'immich': {
|
||||||
process.title = 'immich_server';
|
if (!process.env.IMMICH_WORKERS_INCLUDE) {
|
||||||
return bootstrapWorker('api');
|
process.env.IMMICH_WORKERS_INCLUDE = 'api';
|
||||||
|
}
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
case 'microservices': {
|
case 'microservices': {
|
||||||
process.title = 'immich_microservices';
|
if (!process.env.IMMICH_WORKERS_INCLUDE) {
|
||||||
return bootstrapWorker('microservices');
|
process.env.IMMICH_WORKERS_INCLUDE = 'microservices';
|
||||||
}
|
|
||||||
default: {
|
|
||||||
for (const worker of getWorkers()) {
|
|
||||||
bootstrapWorker(worker);
|
|
||||||
}
|
}
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
process.title = 'immich';
|
||||||
|
for (const worker of getWorkers()) {
|
||||||
|
bootstrapWorker(worker);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void bootstrap();
|
void bootstrap();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user