mirror of
https://github.com/ansible/awx.git
synced 2026-01-14 19:30:39 -03:30
do not use transaction.atomic where locks are also used
This commit is contained in:
parent
0711c87290
commit
3cb986b2b0
@ -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:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user