mirror of
https://github.com/immich-app/immich.git
synced 2025-05-24 02:13:51 -04:00
* Refactor docker-compose to its own folder * Added FastAPI development environment * Added support for GPU in docker file * Added image classification * creating endpoint for smart Image info * added logo with white background on ios * Added endpoint and trigger for image tagging * Classify image and save into database * Update readme
26 lines
924 B
TypeScript
26 lines
924 B
TypeScript
import { BullModule } from '@nestjs/bull';
|
|
import { Module } from '@nestjs/common';
|
|
import { TypeOrmModule } from '@nestjs/typeorm';
|
|
import { AssetEntity } from '../../api-v1/asset/entities/asset.entity';
|
|
import { ExifEntity } from '../../api-v1/asset/entities/exif.entity';
|
|
import { SmartInfoEntity } from '../../api-v1/asset/entities/smart-info.entity';
|
|
import { BackgroundTaskProcessor } from './background-task.processor';
|
|
import { BackgroundTaskService } from './background-task.service';
|
|
|
|
@Module({
|
|
imports: [
|
|
BullModule.registerQueue({
|
|
name: 'background-task',
|
|
defaultJobOptions: {
|
|
attempts: 3,
|
|
removeOnComplete: true,
|
|
removeOnFail: false,
|
|
},
|
|
}),
|
|
TypeOrmModule.forFeature([AssetEntity, ExifEntity, SmartInfoEntity]),
|
|
],
|
|
providers: [BackgroundTaskService, BackgroundTaskProcessor],
|
|
exports: [BackgroundTaskService],
|
|
})
|
|
export class BackgroundTaskModule {}
|