Repository navigation
feat(engine): clone and restart engines, reload project python across the cluster - #3214
Merged
Merged
Conversation
themaherkhalil
commented
Oct 26, 2026
Collaborator
- Add CloneEngine: an owner clones an engine of any type into a private engine they own, with a copy of its files (H2 and SQLite database files, vector files, guardrail python, a virtual environment with its paths rewritten), smss, secrets, metadata and image. It applies the publisher and add rules for the type. A failed clone is cleaned up locally, in cloud storage and in the security database. Audited as ENGINE_CREATE.
- CloseEngine closes the engine on every node through a closeEngine sync event (ZooKeeper or Redis), under the engine lock.
- Add ReloadProject: clears the app modules python has cached (smss_clear_app_imports) in the project's and the user's python process, on every node through a reloadProject sync event.
- Project.close shuts down the project's python process.
- PULL_ENGINE and PULL_PROJECT reopen an engine or project that is open on the node; pushProjectSmss publishes PULL_PROJECT.
- Owners can clone their projects that are not templates (userCanCloneProject).
… the cluster - Add CloneEngine: an owner clones an engine of any type into a private engine they own, with a copy of its files (H2 and SQLite database files, vector files, guardrail python, a virtual environment with its paths rewritten), smss, secrets, metadata and image. It applies the publisher and add rules for the type. A failed clone is cleaned up locally, in cloud storage and in the security database. Audited as ENGINE_CREATE. - CloseEngine closes the engine on every node through a closeEngine sync event (ZooKeeper or Redis), under the engine lock. - Add ReloadProject: clears the app modules python has cached (smss_clear_app_imports) in the project's and the user's python process, on every node through a reloadProject sync event. - Project.close shuts down the project's python process. - PULL_ENGINE and PULL_PROJECT reopen an engine or project that is open on the node; pushProjectSmss publishes PULL_PROJECT. - Owners can clone their projects that are not templates (userCanCloneProject).
Contributor
✅ Snyk checks have passed. No issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.