Skip to content
Snippets Groups Projects
Commit 8756ce42 authored by Luca's avatar Luca Committed by Felix Schäfer
Browse files

Switch to using TransactionAwareTasks

parent c265a8b8
Branches main
No related tags found
1 merge request!4Switch to using TransactionAwareTasks
Pipeline #200050 passed
......@@ -2,14 +2,14 @@ import logging
import requests
from celery.exceptions import MaxRetriesExceededError
from pretix.base.models import Order, OrderPosition
from pretix.base.services.tasks import ProfiledEventTask
from pretix.base.services.tasks import TransactionAwareProfiledEventTask
from pretix.celery_app import app
logger = logging.getLogger(__name__)
@app.task(
base=ProfiledEventTask,
base=TransactionAwareProfiledEventTask,
bind=True,
max_retries=10,
retry_backoff=True,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment