feat: claim durable image derivative jobs
Quality / test (push) Canceled after 0s

This commit is contained in:
2026-09-08 22:04:02 -04:00
parent 7be79f4840
commit abd574293b
4 changed files with 134 additions and 3 deletions
@@ -0,0 +1,13 @@
CREATE TABLE IF NOT EXISTS "image_derivative_jobs" (
"id" uuid PRIMARY KEY DEFAULT gen_random_uuid() NOT NULL,
"inventory_image_id" uuid NOT NULL REFERENCES "inventory_images"("id"),
"source_key" text NOT NULL,
"status" text DEFAULT 'PENDING' NOT NULL,
"derivatives" jsonb DEFAULT '[]'::jsonb NOT NULL,
"error" text,
"created_at" timestamp with time zone DEFAULT now() NOT NULL,
"updated_at" timestamp with time zone DEFAULT now() NOT NULL
);
CREATE INDEX IF NOT EXISTS "image_derivative_jobs_image_id_index"
ON "image_derivative_jobs" ("inventory_image_id");
+7
View File
@@ -78,6 +78,13 @@
"when": 1788919152853,
"tag": "0010_plain_charles_xavier",
"breakpoints": true
},
{
"idx": 11,
"version": "7",
"when": 1789545600000,
"tag": "0011_ensure_image_derivative_jobs",
"breakpoints": true
}
]
}