Promote test → main: free-tier card gate + instant backfill drain (chat#1796)
Merged
SW
5mo ago+115+115+012345678901234567890123456789-8-8-0123456789
Promote #671 from test to main (prod).
- Free-tier card-on-file link — the Songstats gate now issues a Stripe
mode:"setup"($0, no subscription) checkout instead of the $99/mo subscription. - Instant backfill drain — a
historicaljob kickssongstatsBackfillWorkflowimmediately (budget-gated, SKIP LOCKED; cron stays backstop). Verified on preview: enqueue →donein ~10s.
After this lands, a fresh prod agent key on a historical job returns the new $0 setup checkout link.
Summary by cubic
Switches the Songstats gate to a free-tier card-on-file checkout and starts historical backfill immediately after enqueue to reduce wait time.
- New Features
- Free-tier card gate: added
createCardOnFileSessionusing Stripe Checkoutmode: "setup"($0, no subscription). Used when no customer or no default payment method. - Instant backfill drain: after enqueuing a
historicaljob, callstartfromworkflow/apito runsongstatsBackfillWorkflowright away. Budget-gated andSKIP LOCKED; only triggers when items were enqueued.
- Free-tier card gate: added
Summary by CodeRabbit
Release Notes
- Improvements
- Enhanced payment method collection process with a dedicated card setup flow for secure payment information storage.
- Improved reliability of background data synchronization with better error handling to ensure uninterrupted data consistency.