generated from mlibrary/python-starter
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
83 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
Digifeeds | ||
================= | ||
.. toctree:: | ||
overview | ||
new_process | ||
current_digifeeds_process | ||
old_digifeeds_process |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
# Digifeeds Overview | ||
|
||
This is a place to store the mermaid.js code for the [Digifeeds documentation in Confluence](https://mlit.atlassian.net/wiki/spaces/LSO/pages/10388733957/Digifeeds+Process). | ||
|
||
## Highest Level Flowchart | ||
|
||
```mermaid | ||
flowchart TD | ||
A@{ shape: lin-cyl, label: "Folder on Mayhem"} | ||
B[Google Drive Folder] | ||
C(Digifeeds Process) | ||
C --> A | ||
C --> B | ||
style A fill:#f7daf7,stroke:#333,stroke-width:4px | ||
style B fill:#f7daf7,stroke:#333,stroke-width:4px | ||
``` | ||
|
||
## Medium Level Flowchart | ||
|
||
```mermaid | ||
flowchart LR | ||
A@{ shape: lin-cyl, label: "Folder on Mayhem"} | ||
B[S3 Bucket] | ||
C@{ shape: cyl, label: "Digifeeds Database" } | ||
D[Google Drive Folder] | ||
E(Cronjob on Tang) | ||
F(Workflow in K8s) | ||
G(Alma Set) | ||
H(Zephir Bib API) | ||
E --> A | ||
E --> B | ||
F --> B | ||
F -- Adds or Checks <br> status for barcode --> C | ||
F -- Adds Barcode to --> G | ||
F -- Checks if Barcode exists in --> H | ||
F --> D | ||
style A fill:#f7daf7,stroke:#333,stroke-width:4px | ||
style B fill:#f7daf7,stroke:#333,stroke-width:4px | ||
style C fill:#c6ffff,stroke:#333,stroke-width:4px | ||
style D fill:#f7daf7,stroke:#333,stroke-width:4px | ||
``` | ||
|
||
## Cronjob on Tang Sequence Diagram | ||
|
||
```mermaid | ||
sequenceDiagram | ||
Script->>+Input Folder: Gets the list of Volume Folders | ||
loop For every Volume Folder | ||
Script->>Input Folder: Copies Volume Folder to working folder | ||
Script->>Working Folder: verifies file order | ||
alt Missing image | ||
Script->>Script: Log error and move on to next Volume Folder | ||
else All images are there | ||
Script->>Working Folder: Zips the appropriate files in the Volume Folder | ||
end | ||
Script->>+S3 Bucket: Copies zipped file in Working Folder to the S3 Bucket | ||
Script->>+Processed Folder: Copies the zipped and unzipped Volume Folder from the Working Folder to the Processed Folder | ||
Script->>Working Folder: Deletes the zipped and unzipped Volume Folder | ||
Script->>Input Folder: Deletes the Volume Folder | ||
end | ||
Script->>Script: Logs summary of script run | ||
Script->>+Prometheus Pushgateway: Sends metrics | ||
``` |