Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[receptorctl] An asyncio compatible version of get_work_results #790

Open
AlanCoding opened this issue Jun 9, 2023 · 1 comment
Open
Labels

Comments

@AlanCoding
Copy link
Member

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.

@AlanCoding
Copy link
Member Author

For demonstration and eventual performance testing, I've put up https://github.com/AlanCoding/receptor-reporter

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants