Prepare production and Coolify deployment with original exports and datetime pickers
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import { sql } from "drizzle-orm";
|
||||
import { and, eq } from "drizzle-orm";
|
||||
import sharp from "sharp";
|
||||
import { processPhotoExport } from "./exports";
|
||||
import { processEmailDelivery } from "@album/email/queue";
|
||||
import convert from "heic-convert";
|
||||
import { eventBanners, getDb, photoJobs, photos } from "@album/database";
|
||||
@@ -208,6 +209,7 @@ async function emailLoop() {
|
||||
}
|
||||
|
||||
await Promise.all([
|
||||
(async () => { while (true) { try { await processPhotoExport(); } catch { console.error("Export queue check failed"); } await Bun.sleep(1000); } })(),
|
||||
emailLoop(),
|
||||
...Array.from({ length: CONCURRENCY }, (_, index) => workerLoop(index + 1)),
|
||||
]);
|
||||
|
||||
Reference in New Issue
Block a user