1
0
mirror of https://github.com/ansible/awx.git synced 2024-10-31 15:21:13 +03:00

Merge pull request #209 from AlanCoding/non_atomic

do not use transaction.atomic where locks are also used
This commit is contained in:
Alan Rominger 2017-08-07 14:45:11 -04:00 committed by GitHub
commit 795a470603

View File

@ -6,7 +6,6 @@ from awx.main.utils.pglock import advisory_lock
from awx.main.models import Instance, InstanceGroup
from optparse import make_option
from django.db import transaction
from django.core.management.base import BaseCommand, CommandError
@ -21,7 +20,6 @@ class Command(BaseCommand):
help='The controlling group (makes this an isolated group)'),
)
@transaction.atomic
def handle(self, **options):
queuename = options.get('queuename')
if not queuename: