mirror of
https://github.com/immich-app/immich.git
synced 2026-05-18 03:10:24 +03:00
chore!: remove deprecated env variables (#27802)
This commit is contained in:
@@ -247,7 +247,7 @@ export const defaults = Object.freeze<SystemConfig>({
|
|||||||
urls: [process.env.IMMICH_MACHINE_LEARNING_URL || 'http://immich-machine-learning:3003'],
|
urls: [process.env.IMMICH_MACHINE_LEARNING_URL || 'http://immich-machine-learning:3003'],
|
||||||
availabilityChecks: {
|
availabilityChecks: {
|
||||||
enabled: true,
|
enabled: true,
|
||||||
timeout: Number(process.env.IMMICH_MACHINE_LEARNING_PING_TIMEOUT) || 2000,
|
timeout: 2000,
|
||||||
interval: 30_000,
|
interval: 30_000,
|
||||||
},
|
},
|
||||||
clip: {
|
clip: {
|
||||||
|
|||||||
@@ -15,15 +15,6 @@ export class SystemConfigService extends BaseService {
|
|||||||
async onBootstrap() {
|
async onBootstrap() {
|
||||||
const config = await this.getConfig({ withCache: false });
|
const config = await this.getConfig({ withCache: false });
|
||||||
await this.eventRepository.emit('ConfigInit', { newConfig: config });
|
await this.eventRepository.emit('ConfigInit', { newConfig: config });
|
||||||
|
|
||||||
if (
|
|
||||||
process.env.IMMICH_MACHINE_LEARNING_PING_TIMEOUT ||
|
|
||||||
process.env.IMMICH_MACHINE_LEARNING_AVAILABILITY_BACKOFF_TIME
|
|
||||||
) {
|
|
||||||
this.logger.deprecate(
|
|
||||||
'IMMICH_MACHINE_LEARNING_PING_TIMEOUT and MACHINE_LEARNING_AVAILABILITY_BACKOFF_TIME have been moved to system config(`machineLearning.availabilityChecks`) and will be removed in a future release.',
|
|
||||||
);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@OnEvent({ name: 'AppShutdown' })
|
@OnEvent({ name: 'AppShutdown' })
|
||||||
|
|||||||
Reference in New Issue
Block a user