feat: warn if microservices worker is missing (#28869)

* feat: warn if microservices worker is missing

* fix: ci
This commit is contained in:
bo0tzz
2026-06-10 09:31:32 -04:00
committed by GitHub
parent b9b1cc2f65
commit d3680871ef
3 changed files with 48 additions and 2 deletions
+7
View File
@@ -80,9 +80,16 @@ export class QueueService extends BaseService {
this.jobRepository.setup(this.services);
if (this.worker === ImmichWorker.Microservices) {
this.jobRepository.startWorkers();
} else if (this.worker === ImmichWorker.Api) {
this.jobRepository.watchWorkers();
}
}
@OnEvent({ name: 'AppShutdown' })
onShutdown() {
this.jobRepository.teardown();
}
private updateConcurrency(config: SystemConfig) {
this.logger.debug(`Updating queue concurrency settings`);
for (const queueName of Object.values(QueueName)) {