From 7f6d4a7bbfacd2a9d80bf17c8e33ca8dd107be4b Mon Sep 17 00:00:00 2001 From: Alexei Date: Fri, 13 Oct 2023 16:12:59 -0400 Subject: [PATCH] f --- ARCHITECTURE.md | 82 ++++++++++++++++++++++++++++++++++++++++++------- 1 file changed, 71 insertions(+), 11 deletions(-) diff --git a/ARCHITECTURE.md b/ARCHITECTURE.md index 36058b7..c16ca5b 100644 --- a/ARCHITECTURE.md +++ b/ARCHITECTURE.md @@ -78,20 +78,32 @@ fork2 --> CheckBadgerScanN state PollInProgressScansForStatus { chk1: CheckForFailure - err2: CheckForFailure - err3: CheckForFailure + chk2: CheckForFailure + chk3: CheckForFailure rei1: BadgerInit + rei2: BadgerInit + rei3: BadgerInit pro1: ExtractProgress - ter1: CheckForTermination pro2: ExtractProgress pro3: ExtractProgress + ter1: CheckForTermination + ter2: CheckForTermination + ter3: CheckForTermination fin1: ExtractResults + fin2: ExtractResults + fin3: ExtractResults fai1: ExtractErrorLog + fai2: ExtractErrorLog + fai3: ExtractErrorLog del1: DeleteDroplet + del2: DeleteDroplet + del3: DeleteDroplet sta1: CheckForStall sta2: CheckForStall sta3: CheckForStall res1: RestartScan + res2: RestartScan + res3: RestartScan state CheckBadgerScan1 { [*] --> chk1 @@ -125,17 +137,65 @@ state PollInProgressScansForStatus { } -- state CheckBadgerScan2 { - [*] --> err2 - err2 --> pro2 - pro2 --> sta2 - sta2 --> [*] + [*] --> chk2 + + state scan2_failed <> + chk2 --> scan2_failed + scan2_failed --> rei2 : Scan previously failed + scan2_failed --> pro2 : No error log found + + rei2 --> [*] + + pro2 --> ter2 + + state scan2_term <> + ter2 --> scan2_term + scan2_term --> fin2 : Scan finished + scan2_term --> fai2: Scan failed + scan2_term --> sta2 : Scan is still running + + fin2 --> del2 + fai2 --> del2 + + del2 --> [*] + + state scan2_stall <> + sta2 --> scan2_stall + scan2_stall --> res2: Progress file is stale + scan2_stall --> [*] : Progress was updated recently + + res2 --> [*] } -- state CheckBadgerScanN { - [*] --> err3 - err3 --> pro3 - pro3 --> sta3 - sta3 --> [*] + [*] --> chk3 + + state scan3_failed <> + chk3 --> scan3_failed + scan3_failed --> rei3 : Scan previously failed + scan3_failed --> pro3 : No error log found + + rei3 --> [*] + + pro3 --> ter3 + + state scan3_term <> + ter3 --> scan3_term + scan3_term --> fin3 : Scan finished + scan3_term --> fai3: Scan failed + scan3_term --> sta3 : Scan is still running + + fin3 --> del3 + fai3 --> del3 + + del3 --> [*] + + state scan3_stall <> + sta3 --> scan3_stall + scan3_stall --> res3: Progress file is stale + scan3_stall --> [*] : Progress was updated recently + + res3 --> [*] } }