manager.py: support multiple application processes#284
Draft
anishk85 wants to merge 1 commit into
Draft
Conversation
Author
javizqh
requested changes
Jun 3, 2026
Author
|
Hi @javizqh , Thanks for the review! |
1e3ab4c to
4360326
Compare
javizqh
requested changes
Jun 3, 2026
| shutil.rmtree("/workspace/code", ignore_errors=False) | ||
| os.mkdir("/workspace/code") | ||
|
|
||
| # Extract app config |
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.
replaces the single self.application_process with a self.application_processes dict so RAM can manage N processes by name instead of just one. needed this for multi-agent exercises like drone cat-mouse where we run the students code and a pre-programmed mouse at the same time. added a _kill_all_applications() helper that loops through the dict and kills each process tree — replaces the old copy-pasted kill logic in terminate, disconnect, and signal_handler.
the intresting part is the syncronized startup: after spawning all processes we freeze them with SIGSTOP, unpause gazebo, then SIGCONT everthing together so all agents start at the exact same sim-time. also if the student zip has a processB/ subdir inside it, we launch that as a second agent automatically (its server-side code so we skip linting it later i will see if needed)
existing single-agent exercises just end up with one entry {"agentA": proc} in the dict. tested pause/resume/stop/disconnect with two processes in the real GUI, evrything works as expected.
ra.webm