Skip to content

Commit

Permalink
add mermaid flowchart of agent boot
Browse files Browse the repository at this point in the history
  • Loading branch information
kissiel committed Dec 1, 2023
1 parent c0b1634 commit 1ed554f
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions checkbox-ng/plainbox/impl/session/agent_bootup.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Checkbox Agent bootup process


```mermaid
graph TD;
proc("agent process starts")
load("load previous session")
resume("resume the previous session")
resume_crashed("resume the previous session")
auto_session{"was the previous session non-interactive"}
mark_pass("mark last running job as passing")
mark_crash("mark last running job as crashing")
idle("go into idle state")
listen("listen for the controllers")
proc --> load
last_job{"was the last job a `noreturn` job?"}
load -->last_job
last_job-->|yes| resume
resume --> mark_pass
last_job-->|no| auto_session
auto_session-->|no| idle
idle --> listen
mark_pass --> listen
auto_session-->|yes| resume_crashed
resume_crashed --> mark_crash
mark_crash --> listen
```

0 comments on commit 1ed554f

Please sign in to comment.