hotpocket/services/backend/hotpocket_backend/apps/saves/tasks.py
Tomek Wójcik b4338e2769
Some checks failed
CI / Checks (push) Failing after 13m2s
Release v1.0.0
2025-08-20 21:00:50 +02:00

16 lines
340 B
Python

# -*- coding: utf-8 -*-
from __future__ import annotations
import uuid
from celery import shared_task
from django import db
@shared_task
def process_save(*, pk: uuid.UUID):
from hotpocket_backend.apps.saves.services import SaveProcessorService
with db.transaction.atomic():
return SaveProcessorService().process(pk=pk)