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