We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dfa19e6 commit c028ecaCopy full SHA for c028eca
1 file changed
democrasite/webiscite/tasks.py
@@ -11,6 +11,7 @@
11
from celery import shared_task
12
from celery.utils.log import get_task_logger
13
from django.conf import settings
14
+from django.db import transaction
15
from github import Auth
16
from github import Github
17
from github.Repository import Repository
@@ -22,6 +23,7 @@
22
23
24
25
@shared_task
26
+@transaction.atomic
27
def submit_bill(bill_id: int) -> None:
28
"""Handles the final processing and closing of a bill
29
0 commit comments