Skip to content

[receptorctl] An asyncio compatible version of get_work_results #790

Open
@AlanCoding

Description

Current implementation looks like this:

self._socket = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM)
self._socket.connect(path)

And AWX asks for the socket and sockfile.

We would like to open the door to an eventual asyncio implementation to efficiently process streams from multiple work units at the same time. To do this, we need an async version of all the methods involved, ultimately get_work_results.

Since this uses UNIX sockets, that alternative would likely be this:

https://docs.python.org/3/library/asyncio-stream.html#asyncio.open_unix_connection

And look similar, but different

asyncio.open_unix_connection(path=path)

that's all I know so-far.

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions