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:
Thomas Way
2025-04-30 22:42:18 +01:00
parent b845184c80
commit d46e5f2436
47 changed files with 751 additions and 933 deletions
+6 -4
View File
@@ -1,12 +1,14 @@
global:
scrape_interval: 15s
evaluation_interval: 15s
scrape_interval: 3s
evaluation_interval: 3s
scrape_configs:
- job_name: immich_api
scrape_interval: 3s
static_configs:
- targets: ['immich-server:8081']
- targets: ["immich-server:8081"]
- job_name: immich_microservices
scrape_interval:
static_configs:
- targets: ['immich-server:8082']
- targets: ["immich-server:8082"]