mirror of
https://github.com/immich-app/immich.git
synced 2025-07-09 09:12:57 +02:00
feat: Use postgres as a queue
We've been keen to try this for a while as it means we can remove redis as a dependency, which makes Immich easier to setup and run. This replaces bullmq with a bespoke postgres queue. Jobs in the queue are processed either immediately via triggers and notifications, or eventually if a notification is missed.
This commit is contained in:
parent
b845184c80
commit
d46e5f2436
47 changed files with 751 additions and 933 deletions
mobile/openapi/lib/model
6
mobile/openapi/lib/model/job_command.dart
generated
6
mobile/openapi/lib/model/job_command.dart
generated
|
@ -26,7 +26,7 @@ class JobCommand {
|
|||
static const start = JobCommand._(r'start');
|
||||
static const pause = JobCommand._(r'pause');
|
||||
static const resume = JobCommand._(r'resume');
|
||||
static const empty = JobCommand._(r'empty');
|
||||
static const clear = JobCommand._(r'clear');
|
||||
static const clearFailed = JobCommand._(r'clear-failed');
|
||||
|
||||
/// List of all possible values in this [enum][JobCommand].
|
||||
|
@ -34,7 +34,7 @@ class JobCommand {
|
|||
start,
|
||||
pause,
|
||||
resume,
|
||||
empty,
|
||||
clear,
|
||||
clearFailed,
|
||||
];
|
||||
|
||||
|
@ -77,7 +77,7 @@ class JobCommandTypeTransformer {
|
|||
case r'start': return JobCommand.start;
|
||||
case r'pause': return JobCommand.pause;
|
||||
case r'resume': return JobCommand.resume;
|
||||
case r'empty': return JobCommand.empty;
|
||||
case r'clear': return JobCommand.clear;
|
||||
case r'clear-failed': return JobCommand.clearFailed;
|
||||
default:
|
||||
if (!allowNull) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue