feat: bound pricing job retries
Quality / test (push) Canceled after 0s

This commit is contained in:
2026-09-09 18:02:35 -04:00
parent 22d13af604
commit b58b84a81e
7 changed files with 65 additions and 10 deletions
@@ -321,6 +321,8 @@ export const pricingRefreshJobs = pgTable('pricing_refresh_jobs', {
conditionId: uuid('condition_id').notNull().references(() => conditions.id),
providerId: text('provider_id').notNull(),
status: text('status').default('PENDING').notNull(),
attemptCount: integer('attempt_count').default(0).notNull(),
nextAttemptAt: timestamp('next_attempt_at', { withTimezone: true }),
observations: jsonb('observations').default([]).notNull(),
valuation: jsonb('valuation'),
error: text('error'),