chore: Add some more comments for DrBones

This commit is contained in:
J H
2023-11-13 15:16:21 -07:00
parent 38a624fecf
commit a36ab71600
2 changed files with 4 additions and 2 deletions

View File

@@ -682,7 +682,7 @@ type RunMainResult = Result<Result<NoOutput, (i32, String)>, Error>;
#[instrument(skip_all)]
async fn run_main(seed: Arc<ManagerSeed>) -> RunMainResult {
let runtime = NonDetachingJoinHandle::from(tokio::spawn(start_up_image(seed.clone())));
let runtime = NonDetachingJoinHandle::from(tokio::spawn(execute_main(seed.clone())));
let health = main_health_check_daemon(seed.clone());
let res = tokio::select! {
@@ -694,7 +694,7 @@ async fn run_main(seed: Arc<ManagerSeed>) -> RunMainResult {
/// We want to start up the manifest, but in this case we want to know that we have generated the certificates.
/// Note for _generated_certificate: Needed to know that before we start the state we have generated the certificate
async fn start_up_image(seed: Arc<ManagerSeed>) -> Result<Result<NoOutput, (i32, String)>, Error> {
async fn execute_main(seed: Arc<ManagerSeed>) -> Result<Result<NoOutput, (i32, String)>, Error> {
seed.manifest
.main
.execute::<(), NoOutput>(

View File

@@ -21,6 +21,8 @@ use crate::util::NonDetachingJoinHandle;
struct ProcedureId(u64);
// @DRB Need to have a way of starting the the procudures and getting the information back
// @DRB On top of this we need to also have the procedures to have the effects and get the results back for them, maybe lock them to the running instance?
/// Persistant container are the old containers that need to run all the time
/// The goal is that all services will be persistent containers, waiting to run the main system.
pub struct PersistentContainer {