Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions awx/main/utils/pglock.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@

from contextlib import contextmanager

from django_pglocks import advisory_lock as django_pglocks_advisory_lock
from django_pg_utils.locks import advisory_lock as pgware_advisory_lock
from django.db import connection


@contextmanager
def advisory_lock(*args, **kwargs):
if connection.vendor == 'postgresql':
with django_pglocks_advisory_lock(*args, **kwargs) as internal_lock:
with pgware_advisory_lock(*args, **kwargs) as internal_lock:
yield internal_lock
else:
yield True
3 changes: 0 additions & 3 deletions licenses/django-pglocks.txt

This file was deleted.

20 changes: 20 additions & 0 deletions licenses/django-pgware.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
PostgreSQL License

Copyright (c) 2013-2026, Christophe Pettus

Permission to use, copy, modify, and distribute this software and its
documentation for any purpose, without fee, and without a written agreement
is hereby granted, provided that the above copyright notice and this paragraph
and the following two paragraphs appear in all copies.

IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR DIRECT,
INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, INCLUDING LOST
PROFITS, ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION,
EVEN IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
DAMAGE.

THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING, BUT
NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS ON AN "AS IS" BASIS,
AND THE COPYRIGHT HOLDER HAS NO OBLIGATIONS TO PROVIDE MAINTENANCE, SUPPORT,
UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
2 changes: 1 addition & 1 deletion requirements/requirements.in
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ django-extensions==4.1
django-guid==3.6.1
django-oauth-toolkit>=3.3.0
django-polymorphic
django-pglocks
django-pgware
django-radius
django-solo
drf-spectacular>=0.27.0
Expand Down
4 changes: 2 additions & 2 deletions requirements/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ django==5.2.17
# django-extensions
# django-guid
# django-oauth-toolkit
# django-pgware
# django-polymorphic
# django-solo
# django-valkey
Expand All @@ -126,7 +127,7 @@ django-guid==3.6.1
# via -r /awx_devel/requirements/requirements.in
django-oauth-toolkit==3.3.0
# via -r /awx_devel/requirements/requirements.in
django-pglocks==1.0.4
django-pgware==1.0.0
# via -r /awx_devel/requirements/requirements.in
django-polymorphic==4.11.7
# via -r /awx_devel/requirements/requirements.in
Expand Down Expand Up @@ -394,7 +395,6 @@ setuptools-scm[toml]==8.0.4
# via -r /awx_devel/requirements/requirements.in
six==1.16.0
# via
# django-pglocks
# isodate
# kubernetes
# openshift
Expand Down