Skip to main content

load_initial_engine

Function load_initial_engine 

Source
pub async fn load_initial_engine(
    state: &OrgState,
    api: &OrgApi,
    fallback: Engine,
) -> Engine
Expand description

Helper used by main() to load the engine that should be active at process start: org-mode shieldset if enrolled (and reachable), local rules otherwise.

On failure to reach Smartflow we fall back to the local engine and log a warning – this matches the cached_policy default offline behaviour documented in the strategy memo.