mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-04-04 14:29:45 +00:00
chore: Add some more comments for DrBones
This commit is contained in:
@@ -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>(
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user