-
Notifications
You must be signed in to change notification settings - Fork 225
Add support for starting dataflows through API crate and daemon #1101
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
Add support for starting dataflows through API crate and daemon #1101
Conversation
e5466ef
to
115e7fc
Compare
Hey Philipp, I understand that you might not want to expose to many public function, but, I think that it would be a better solution for now. I genuinely don't feel comfortable adding 300+ changes that touches all the repository and adds on top of an already oversaturated chain of request-response between the node-daemon-coordinator. I really feel the burden of adding those fixes that makes the code very hard to read and is also hard to maintain. I'm not sure if this will be a breaking changes that will requires to bump all dora node. I think that this change is interesting and we should probably integrate this in a broader refactoring that makes it possible for library based running dataflow, and enable things like testing? How does that sound? |
The main limitation that I'm trying to solve with this PR is to make the changes from #1093 also work when the coordinator is running on a different machine than the node. I think the nodes in our node hub should be usable in distributed dataflows too.
Most of these changes are just moving some functions around, e.g. from the CLI crate to our
I agree that this part needs some refactoring. However, I'm not sure if it's really simpler to do add the CLI into the mix. Then we have a cli1->coordinator->daemon->node->cli2->coordinator->daemon chain...
The communication is initiated by the node, so you should only need to update the dora version if you want to use it. The existing messages are not changed. |
Another advantage of this approach is that your dora-openai-websocket server would be much easier to compile, as you don't have to build the coordinator, daemon, all the CLI functionality (e.g. git and https download), the runtime, etc this way. |
However, I don't feel too strongly about this. I'm also ok with merging #1093 as-is, if you're fine with the big dependency chain and the fact that it only works for same-machine deployments. |
afd751b
to
1a626ad
Compare
Closing for now because of the concerns mentioned in #1101 (comment). |
As proposed in #1093 (review)