From 3cb986b2b0ba1a25dd77916c80ff6454fd302f7f Mon Sep 17 00:00:00 2001 From: AlanCoding Date: Mon, 7 Aug 2017 13:29:06 -0400 Subject: [PATCH] do not use transaction.atomic where locks are also used --- awx/main/management/commands/register_queue.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/awx/main/management/commands/register_queue.py b/awx/main/management/commands/register_queue.py index 424060e5c9..1034d7608d 100644 --- a/awx/main/management/commands/register_queue.py +++ b/awx/main/management/commands/register_queue.py @@ -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: