job
This commit is contained in:
parent
37b4f8455b
commit
a37adc0c96
3 changed files with 1 additions and 7 deletions
|
@ -78,7 +78,6 @@ export enum JobName {
|
|||
|
||||
// smart albums
|
||||
SMART_ALBUM_INDEX = 'smart-album-index',
|
||||
SMART_ALBUM_INSERT = 'smart-album-insert',
|
||||
}
|
||||
|
||||
export const JOBS_ASSET_PAGINATION_SIZE = 1000;
|
||||
|
@ -144,5 +143,4 @@ export const JOBS_TO_QUEUE: Record<JobName, QueueName> = {
|
|||
|
||||
// smart albums
|
||||
[JobName.SMART_ALBUM_INDEX]: QueueName.SMART_ALBUM,
|
||||
[JobName.SMART_ALBUM_INSERT]: QueueName.SMART_ALBUM,
|
||||
};
|
||||
|
|
|
@ -84,8 +84,7 @@ export type JobItem =
|
|||
| { name: JobName.SEARCH_REMOVE_FACE; data: IAssetFaceJob }
|
||||
|
||||
// Smart album
|
||||
| { name: JobName.SMART_ALBUM_INDEX; data: ISmartAlbumIndexJob }
|
||||
| { name: JobName.SMART_ALBUM_INSERT; data: ISmartAlbumInsertJob };
|
||||
| { name: JobName.SMART_ALBUM_INDEX; data: ISmartAlbumIndexJob };
|
||||
|
||||
export type JobHandler<T = any> = (data: T) => boolean | Promise<boolean>;
|
||||
|
||||
|
|
|
@ -76,9 +76,6 @@ export class AppService {
|
|||
[JobName.SMART_ALBUM_INDEX]: (data) => {
|
||||
throw new Error('Not implemented SMART_ALBUM_INDEX');
|
||||
},
|
||||
[JobName.SMART_ALBUM_INSERT]: (data) => {
|
||||
throw new Error('Not implemented SMART_ALBUM_INSERT');
|
||||
},
|
||||
});
|
||||
|
||||
process.on('uncaughtException', (error: Error | any) => {
|
||||
|
|
Loading…
Reference in a new issue