mirror of
https://github.com/immich-app/immich
synced 2025-10-17 18:19:27 +00:00
chore(server): split album update notifications into multiple jobs (#17879)
We would like to move away from the concept of finding and removing pending jobs. The only place this is used is for album update notifications, and this is done so that users who initially uploaded assets to an album will also receive a notification if someone else then adds assets to the same album. This can also be achieved with a job for each recipient. Multiple jobs also has the advantage that it will scale better for albums with many users, it's possible to send notifications concurrently, retries are possible without sending duplicate notifications, and it's clear what recipient a job failed for.
This commit is contained in:
parent
becdc3dcf5
commit
da7a81b752
10 changed files with 74 additions and 143 deletions
|
|
@ -252,7 +252,7 @@ export interface INotifyAlbumInviteJob extends IEntityJob {
|
|||
}
|
||||
|
||||
export interface INotifyAlbumUpdateJob extends IEntityJob, IDelayedJob {
|
||||
recipientIds: string[];
|
||||
recipientId: string;
|
||||
}
|
||||
|
||||
export interface JobCounts {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue