mirror of
https://github.com/ansible/awx.git
synced 2026-04-06 18:49:21 -02:30
do not use transaction.atomic where locks are also used
This commit is contained in:
@@ -6,7 +6,6 @@ from awx.main.utils.pglock import advisory_lock
|
|||||||
from awx.main.models import Instance, InstanceGroup
|
from awx.main.models import Instance, InstanceGroup
|
||||||
|
|
||||||
from optparse import make_option
|
from optparse import make_option
|
||||||
from django.db import transaction
|
|
||||||
from django.core.management.base import BaseCommand, CommandError
|
from django.core.management.base import BaseCommand, CommandError
|
||||||
|
|
||||||
|
|
||||||
@@ -21,7 +20,6 @@ class Command(BaseCommand):
|
|||||||
help='The controlling group (makes this an isolated group)'),
|
help='The controlling group (makes this an isolated group)'),
|
||||||
)
|
)
|
||||||
|
|
||||||
@transaction.atomic
|
|
||||||
def handle(self, **options):
|
def handle(self, **options):
|
||||||
queuename = options.get('queuename')
|
queuename = options.get('queuename')
|
||||||
if not queuename:
|
if not queuename:
|
||||||
|
|||||||
Reference in New Issue
Block a user