Skip to content

Commit

Permalink
updated the Process Barcodes High Level Overview
Browse files Browse the repository at this point in the history
  • Loading branch information
niquerio committed Jan 28, 2025
1 parent 5e1655a commit 58f7361
Showing 1 changed file with 32 additions and 21 deletions.
53 changes: 32 additions & 21 deletions docs/digifeeds/overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -187,31 +187,42 @@ sequenceDiagram

## Process Barcodes High Level Overview

```mermaidjs
```meramaidjs
flowchart TD
A(Get list of barcodes from zips in S3 Bucket)
B1(Add Barcode to Digifeeds Alma Set)
B2(Check Zephir for Barcode)
B3(Move zip from S3 to Google Drive if Ready)
C1(Add Barcode to Digifeeds Alma Set)
C2(Check Zephir for Barcode)
C3(Move zip from S3 to Google Drive if Ready)
D(Send metrics to Prometheus)
A --> B1
A --> C1
subgraph "barcode 1"
B1 --> B2
B2 --> B3
end
subgraph "barcode 2"
C1 --> C2
B(Divide barcodes into batches of 50 barcodes)
C1{Is there another barcode in the list?}
C2(Add Barcode to Digifeeds Alma Set)
C3(Check Zephir for Barcode)
C4(Move zip from S3 to Google Drive if Ready)
D1{Is there another barcode in the list?}
D2(Add Barcode to Digifeeds Alma Set)
D3(Check Zephir for Barcode)
D4(Move zip from S3 to Google Drive if Ready)
Z(Send metrics to Prometheus)
A --> B
B --> C1
B --> D1
subgraph "batch of 50 barcodes"
C1 -- yes --> C2
C2 --> C3
C3 --> C4
C4 --> C1
end
B3 --> D
C3 --> D
subgraph "batch of 50 barcodes"
D1 -- yes --> D2
D2 --> D3
D3 --> D4
D4 --> D1
end
C1 -- no --> Z
D1 -- no --> Z
```

0 comments on commit 58f7361

Please sign in to comment.