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

[daemon] write a listener daemon to monitor a question queue #18

Open
signebedi opened this issue Mar 23, 2023 · 2 comments
Open

[daemon] write a listener daemon to monitor a question queue #18

signebedi opened this issue Mar 23, 2023 · 2 comments

Comments

@signebedi
Copy link
Owner

write a listener daemon to monitor a question queue
It may make sense to daemonize a listener interface that synchronously processes questions in a spool file. Potentially, then, the chat client runs its request asynchronously and awaits a response from the listener daemon.

Originally posted by @signebedi in #17 (comment)

@signebedi
Copy link
Owner Author

signebedi commented Mar 23, 2023

It will be worth asking how this will work with pypi installations. I think that a daemon interface should be configurable in gptty.ini (see example below) but the runtime should fall back on its own synchronous function set if no daemon is provided.

[main]
enable_daemon=1
daemon_host=localhost
daemon_port=9214

@signebedi
Copy link
Owner Author

signebedi commented Mar 27, 2023

I'm imagining we run this as a systemd service... is there an easy way to do so using gptty? For example, we maybe create a click command gptty serve --host localhost --port 9214 that runs listener server. Or, we optionally run it with a --daemonize tag so it doesn't expect to be in the foreground. Then, we provide a systemd example in assets/...

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

No branches or pull requests

1 participant