Merged
Conversation
Add restart functionality to various services and update related tests. * **Centralized Server**: Add `restartServer` function and update `startServer` to handle restarts in `centralized_server.scala`. Add test case for `restartServer` in `test_centralized_server.scala`. * **Fault Tolerance**: Add `restart` function and update `start` to handle restarts in `fault_tolerance.scala`. Add test case for `restart` in `test_fault_tolerance.scala`. * **Peer Discovery**: Add `restart` function and update `start` to handle restarts in `peer_discovery.scala`. Add test case for `restart` in `test_peer_discovery.scala`. * **Reliable Transmission**: Add `restart` function and update `sendData` to handle restarts in `reliable_transmission.scala`. Add test case for `restart` in `test_reliable_transmission.scala`. * **Scala Connector**: Add `restart` function and update `sendToErlang` to handle restarts in `scala_connector.scala`. Add test case for `restart` in `test_scala_connector.scala`. * **Video Chunking**: Add `restart` function and update `chunkVideo` to handle restarts in `video_chunking.scala`. Add test case for `restart` in `test_video_chunking.scala`. * **Monitoring Script**: Add `restart_services` function and update `handle_error` to call `restart_services` in `monitor.sh`. * **Run Local Script**: Add `--restart` argument and update `run_app` to handle the argument in `run_local.py`. --- For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/koke1997/ScalaCast?shareId=XXXX-XXXX-XXXX-XXXX).
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.
Add restart functionality to various services and update related tests.
restartServerfunction and updatestartServerto handle restarts incentralized_server.scala. Add test case forrestartServerintest_centralized_server.scala.restartfunction and updatestartto handle restarts infault_tolerance.scala. Add test case forrestartintest_fault_tolerance.scala.restartfunction and updatestartto handle restarts inpeer_discovery.scala. Add test case forrestartintest_peer_discovery.scala.restartfunction and updatesendDatato handle restarts inreliable_transmission.scala. Add test case forrestartintest_reliable_transmission.scala.restartfunction and updatesendToErlangto handle restarts inscala_connector.scala. Add test case forrestartintest_scala_connector.scala.restartfunction and updatechunkVideoto handle restarts invideo_chunking.scala. Add test case forrestartintest_video_chunking.scala.restart_servicesfunction and updatehandle_errorto callrestart_servicesinmonitor.sh.--restartargument and updaterun_appto handle the argument inrun_local.py.For more details, open the Copilot Workspace session.