Skip to content

Add logic to construct connection string or params #41

Closed as duplicate of#44
@AlanCoding

Description

Currently, this library expects the user to provide a valid set of kwargs to pass directly to the psycopg library connect method, or any of the connection classes (all the same anyway).

However, the dispatcher should adopt the logic that AWX has to do this. This requires having the Django and psycopg dependencies installed, so it would be pg_notify specific.

This logic exists in:

https://github.com/ansible/awx/blob/devel/awx/main/dispatch/__init__.py

The idea is that we would get the listener connection info from Django settings values, DATABASES and LISTENER_DATABASES, and that the dispatcher library would standardize this practice. This is another argument for having a small Django test app to test against.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    refactoringcode build-out and clean-up

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions