Commit b03e2fd
committed
Fix - Stop retrying a Stripe subscription that no longer exists
A resource_missing error means the gateway subscription is gone for good
(deleted, or created under the other API mode), but retry_subscription()
handled it like a transient failure, so the daily cron re-attempted the
same impossible lookup every day. One live site logged 1596 of these for
a single row holding a test-mode id under live keys.
Mark the gateway subscription unrecoverable on resource_missing and bail
out early on the next run. Keying the marker by the gateway id keeps it
self-invalidating: correcting the id on the row lets retries resume.
Also log member_id instead of user_id, which the retry query never
returns - every existing entry reads "user_id": "unknown".
Closes #14201 parent e52cf15 commit b03e2fd
1 file changed
Lines changed: 17 additions & 1 deletion
Lines changed: 17 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2908 | 2908 | | |
2909 | 2909 | | |
2910 | 2910 | | |
| 2911 | + | |
| 2912 | + | |
| 2913 | + | |
| 2914 | + | |
| 2915 | + | |
| 2916 | + | |
2911 | 2917 | | |
2912 | 2918 | | |
2913 | 2919 | | |
| |||
3047 | 3053 | | |
3048 | 3054 | | |
3049 | 3055 | | |
3050 | | - | |
| 3056 | + | |
3051 | 3057 | | |
3052 | 3058 | | |
3053 | 3059 | | |
3054 | 3060 | | |
3055 | 3061 | | |
| 3062 | + | |
| 3063 | + | |
| 3064 | + | |
| 3065 | + | |
| 3066 | + | |
| 3067 | + | |
| 3068 | + | |
| 3069 | + | |
| 3070 | + | |
| 3071 | + | |
3056 | 3072 | | |
3057 | 3073 | | |
3058 | 3074 | | |
| |||
0 commit comments