42
42
AsyncSessionMaker ,
43
43
RedisMiddleware ,
44
44
TaskPriority ,
45
- TaskQueue ,
46
45
actor ,
47
46
can_retry ,
48
47
get_retries ,
@@ -81,7 +80,6 @@ class StripeTaskError(PolarTaskError): ...
81
80
@actor (
82
81
actor_name = "stripe.webhook.account.updated" ,
83
82
priority = TaskPriority .HIGH ,
84
- queue_name = TaskQueue .HIGH_PRIORITY ,
85
83
)
86
84
@stripe_api_connection_error_retry
87
85
async def account_updated (event_id : uuid .UUID ) -> None :
@@ -96,7 +94,6 @@ async def account_updated(event_id: uuid.UUID) -> None:
96
94
@actor (
97
95
actor_name = "stripe.webhook.payment_intent.succeeded" ,
98
96
priority = TaskPriority .HIGH ,
99
- queue_name = TaskQueue .HIGH_PRIORITY ,
100
97
)
101
98
@stripe_api_connection_error_retry
102
99
async def payment_intent_succeeded (event_id : uuid .UUID ) -> None :
@@ -141,7 +138,6 @@ async def payment_intent_succeeded(event_id: uuid.UUID) -> None:
141
138
@actor (
142
139
actor_name = "stripe.webhook.payment_intent.payment_failed" ,
143
140
priority = TaskPriority .HIGH ,
144
- queue_name = TaskQueue .HIGH_PRIORITY ,
145
141
)
146
142
@stripe_api_connection_error_retry
147
143
async def payment_intent_payment_failed (event_id : uuid .UUID ) -> None :
@@ -167,7 +163,6 @@ async def payment_intent_payment_failed(event_id: uuid.UUID) -> None:
167
163
@actor (
168
164
actor_name = "stripe.webhook.setup_intent.succeeded" ,
169
165
priority = TaskPriority .HIGH ,
170
- queue_name = TaskQueue .HIGH_PRIORITY ,
171
166
)
172
167
@stripe_api_connection_error_retry
173
168
async def setup_intent_succeeded (event_id : uuid .UUID ) -> None :
@@ -189,7 +184,6 @@ async def setup_intent_succeeded(event_id: uuid.UUID) -> None:
189
184
@actor (
190
185
actor_name = "stripe.webhook.setup_intent.setup_failed" ,
191
186
priority = TaskPriority .HIGH ,
192
- queue_name = TaskQueue .HIGH_PRIORITY ,
193
187
)
194
188
@stripe_api_connection_error_retry
195
189
async def setup_intent_setup_failed (event_id : uuid .UUID ) -> None :
@@ -210,7 +204,6 @@ async def setup_intent_setup_failed(event_id: uuid.UUID) -> None:
210
204
@actor (
211
205
actor_name = "stripe.webhook.charge.pending" ,
212
206
priority = TaskPriority .HIGH ,
213
- queue_name = TaskQueue .HIGH_PRIORITY ,
214
207
)
215
208
async def charge_pending (event_id : uuid .UUID ) -> None :
216
209
async with AsyncSessionMaker () as session :
@@ -234,7 +227,6 @@ async def charge_pending(event_id: uuid.UUID) -> None:
234
227
@actor (
235
228
actor_name = "stripe.webhook.charge.failed" ,
236
229
priority = TaskPriority .HIGH ,
237
- queue_name = TaskQueue .HIGH_PRIORITY ,
238
230
)
239
231
async def charge_failed (event_id : uuid .UUID ) -> None :
240
232
async with AsyncSessionMaker () as session :
@@ -254,7 +246,6 @@ async def charge_failed(event_id: uuid.UUID) -> None:
254
246
@actor (
255
247
actor_name = "stripe.webhook.charge.succeeded" ,
256
248
priority = TaskPriority .HIGH ,
257
- queue_name = TaskQueue .HIGH_PRIORITY ,
258
249
)
259
250
@stripe_api_connection_error_retry
260
251
async def charge_succeeded (event_id : uuid .UUID ) -> None :
@@ -276,7 +267,6 @@ async def charge_succeeded(event_id: uuid.UUID) -> None:
276
267
@actor (
277
268
actor_name = "stripe.webhook.refund.created" ,
278
269
priority = TaskPriority .HIGH ,
279
- queue_name = TaskQueue .HIGH_PRIORITY ,
280
270
)
281
271
@stripe_api_connection_error_retry
282
272
async def refund_created (event_id : uuid .UUID ) -> None :
@@ -295,7 +285,6 @@ async def refund_created(event_id: uuid.UUID) -> None:
295
285
@actor (
296
286
actor_name = "stripe.webhook.refund.updated" ,
297
287
priority = TaskPriority .HIGH ,
298
- queue_name = TaskQueue .HIGH_PRIORITY ,
299
288
)
300
289
@stripe_api_connection_error_retry
301
290
async def refund_updated (event_id : uuid .UUID ) -> None :
@@ -314,7 +303,6 @@ async def refund_updated(event_id: uuid.UUID) -> None:
314
303
@actor (
315
304
actor_name = "stripe.webhook.refund.failed" ,
316
305
priority = TaskPriority .HIGH ,
317
- queue_name = TaskQueue .HIGH_PRIORITY ,
318
306
)
319
307
@stripe_api_connection_error_retry
320
308
async def refund_failed (event_id : uuid .UUID ) -> None :
@@ -333,7 +321,6 @@ async def refund_failed(event_id: uuid.UUID) -> None:
333
321
@actor (
334
322
actor_name = "stripe.webhook.charge.dispute.closed" ,
335
323
priority = TaskPriority .HIGH ,
336
- queue_name = TaskQueue .HIGH_PRIORITY ,
337
324
)
338
325
@stripe_api_connection_error_retry
339
326
async def charge_dispute_closed (event_id : uuid .UUID ) -> None :
@@ -353,7 +340,6 @@ async def charge_dispute_closed(event_id: uuid.UUID) -> None:
353
340
@actor (
354
341
actor_name = "stripe.webhook.customer.subscription.updated" ,
355
342
priority = TaskPriority .HIGH ,
356
- queue_name = TaskQueue .HIGH_PRIORITY ,
357
343
)
358
344
@stripe_api_connection_error_retry
359
345
async def customer_subscription_updated (event_id : uuid .UUID ) -> None :
@@ -380,7 +366,6 @@ async def customer_subscription_updated(event_id: uuid.UUID) -> None:
380
366
@actor (
381
367
actor_name = "stripe.webhook.customer.subscription.deleted" ,
382
368
priority = TaskPriority .HIGH ,
383
- queue_name = TaskQueue .HIGH_PRIORITY ,
384
369
)
385
370
@stripe_api_connection_error_retry
386
371
async def customer_subscription_deleted (event_id : uuid .UUID ) -> None :
@@ -407,7 +392,6 @@ async def customer_subscription_deleted(event_id: uuid.UUID) -> None:
407
392
@actor (
408
393
actor_name = "stripe.webhook.invoice.created" ,
409
394
priority = TaskPriority .HIGH ,
410
- queue_name = TaskQueue .HIGH_PRIORITY ,
411
395
)
412
396
@stripe_api_connection_error_retry
413
397
async def invoice_created (event_id : uuid .UUID ) -> None :
@@ -433,7 +417,6 @@ async def invoice_created(event_id: uuid.UUID) -> None:
433
417
@actor (
434
418
actor_name = "stripe.webhook.invoice.paid" ,
435
419
priority = TaskPriority .HIGH ,
436
- queue_name = TaskQueue .HIGH_PRIORITY ,
437
420
)
438
421
@stripe_api_connection_error_retry
439
422
async def invoice_paid (event_id : uuid .UUID ) -> None :
@@ -474,7 +457,6 @@ async def payout_paid(event_id: uuid.UUID) -> None:
474
457
@actor (
475
458
actor_name = "stripe.webhook.identity.verification_session.verified" ,
476
459
priority = TaskPriority .HIGH ,
477
- queue_name = TaskQueue .HIGH_PRIORITY ,
478
460
)
479
461
async def identity_verification_session_verified (event_id : uuid .UUID ) -> None :
480
462
async with AsyncSessionMaker () as session :
@@ -490,7 +472,6 @@ async def identity_verification_session_verified(event_id: uuid.UUID) -> None:
490
472
@actor (
491
473
actor_name = "stripe.webhook.identity.verification_session.processing" ,
492
474
priority = TaskPriority .HIGH ,
493
- queue_name = TaskQueue .HIGH_PRIORITY ,
494
475
)
495
476
async def identity_verification_session_processing (event_id : uuid .UUID ) -> None :
496
477
async with AsyncSessionMaker () as session :
@@ -506,7 +487,6 @@ async def identity_verification_session_processing(event_id: uuid.UUID) -> None:
506
487
@actor (
507
488
actor_name = "stripe.webhook.identity.verification_session.requires_input" ,
508
489
priority = TaskPriority .HIGH ,
509
- queue_name = TaskQueue .HIGH_PRIORITY ,
510
490
)
511
491
async def identity_verification_session_requires_input (event_id : uuid .UUID ) -> None :
512
492
async with AsyncSessionMaker () as session :
0 commit comments