Make sync_single task transaction-aware (#5541)

This commit is contained in:
luelista
2025-10-10 15:49:22 +02:00
committed by GitHub
parent 177a7d07fc
commit a811a31dcc

View File

@@ -32,6 +32,7 @@ from django_scopes import scope, scopes_disabled
from pretix.base.datasync.datasync import datasync_providers
from pretix.base.models.datasync import OrderSyncQueue
from pretix.base.services.tasks import TransactionAwareTask
from pretix.base.signals import periodic_task
from pretix.celery_app import app
@@ -89,7 +90,7 @@ def sync_all():
run_sync(queue)
@app.task()
@app.task(base=TransactionAwareTask)
def sync_single(queue_item_id: int):
with scopes_disabled():
queue = (