feat(guides): add structured image-first editor
CI / Verify (push) Successful in 1m0s
CI / Build immutable images and deploy (push) Failing after 2m38s

This commit is contained in:
2026-08-29 13:30:52 +00:00 Unverified
parent b8e3b99033
commit dc5c667b4e
36 changed files with 5611 additions and 381 deletions
+10
View File
@@ -9,6 +9,7 @@ import {
processOutboxEvent,
} from "@/lib/outbox/processor";
import { closeRedisClient, getRedisClient } from "@/lib/redis/client";
import { claimCatalogSyncJob, processCatalogSyncJob } from "@/lib/catalog/sync";
let stopping = false;
const stop = () => {
@@ -40,6 +41,15 @@ async function run(): Promise<void> {
const leaseMs = positiveInteger("OUTBOX_LEASE_MS", 30_000, 300_000);
while (!stopping) {
const catalogJob = await claimCatalogSyncJob();
if (catalogJob) {
try {
await processCatalogSyncJob(catalogJob.id);
} catch (cause) {
console.error("Catalog sync failed", cause);
}
continue;
}
const events = await claimOutboxEvents(batchSize, leaseMs);
if (events.length === 0) {
await wait(pollMs);