Skip to content

Commit

Permalink
style: fix
Browse files Browse the repository at this point in the history
  • Loading branch information
tazlin committed Nov 13, 2024
1 parent 0f4cbaf commit 2a5ff48
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 23 deletions.
4 changes: 2 additions & 2 deletions docs/job_lifecycle.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ graph TD
C -->|Insufficient Kudos| F
D --> G[Break into Jobs]
G --> H[Add Jobs to Queue]
H --> I[Worker Pops Jobs]
I --> J{Job Available}
J -->|Yes| K[Process Job]
Expand All @@ -27,7 +27,7 @@ graph TD
K --> P[Submit Final Payload]
P --> L
P --> Q[Request Complete]
Q --> R[Update Request Status]
O --> R
R --> S[User Retrieves Results]
Expand Down
6 changes: 3 additions & 3 deletions docs/job_lifecycle.mermaid
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ graph TD
C -->|Insufficient Kudos| F
D --> G[Break into Jobs]
G --> H[Add Jobs to Queue]

H --> I[Worker Pops Jobs]
I --> J{Job Available}
J -->|Yes| K[Process Job]
Expand All @@ -22,9 +22,9 @@ graph TD
K --> P[Submit Final Payload]
P --> L
P --> Q[Request Complete]

Q --> R[Update Request Status]
O --> R
R --> S[User Retrieves Results]
R --> T[Award Kudos to Worker]
T --> I
T --> I
16 changes: 8 additions & 8 deletions docs/worker_loop.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ graph TD
C --> D{Operator Resumes}
D -->|Yes| B
D -->|No| C
B -->|No| E[Worker Polls for Jobs]
E --> F{Job Available}
F -->|Yes| G{Matches Worker Capabilities}
Expand All @@ -20,21 +20,21 @@ graph TD
J -->|At Capacity| L[Queue Job]
L --> I
K --> M[Process Job]
M --> N{Postprocessing Needed}
N -->|Yes| O[Perform Postprocessing]
N -->|No| P{Content Check}
O --> P
P -->|Image Generation| Q{NSFW Filtering}
Q -->|Requested| R[Filter NSFW Content]
Q -->|Not Requested| S{Illegal Content Check}
R --> S
P -->|Text Generation| S
S -->|Pass| T[Prepare Job Submit Payload]
S -->|Fail| U[Delete Image, Prepare Warning]
T --> V{Upload Results}
V -->|Success| W[Submit Final Payload]
V -->|Failure| X{Retry or Abandon Job}
Expand All @@ -43,19 +43,19 @@ graph TD
Y -->|Yes| Z{Excessive Faults}
X -->|Abandon| AA[Update Request Status]
U --> W
W --> I{Is Queue Full}
I -->|Yes| AB[Wait]
I -->|No| E
AB --> I
W --> AC[Request Complete]
AC --> AA
AA --> AD[Award Kudos to Worker]
AD --> AE{Excessive Faults}
AE -->|Yes| B
AE -->|No| E
Z -->|Yes| B
Z -->|No| AF[Worker Shutdown]
AF --> AG[Worker Unavailable]
20 changes: 10 additions & 10 deletions docs/worker_loop.mermaid
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ graph TD
C --> D{Operator Resumes}
D -->|Yes| B
D -->|No| C

B -->|No| E[Worker Polls for Jobs]
E --> F{Job Available}
F -->|Yes| G{Matches Worker Capabilities}
Expand All @@ -15,21 +15,21 @@ graph TD
J -->|At Capacity| L[Queue Job]
L --> I
K --> M[Process Job]

M --> N{Postprocessing Needed}
N -->|Yes| O[Perform Postprocessing]
N -->|No| P{Content Check}
O --> P

P -->|Image Generation| Q{NSFW Filtering}
Q -->|Requested| R[Filter NSFW Content]
Q -->|Not Requested| S{Illegal Content Check}
R --> S
P -->|Text Generation| S

S -->|Pass| T[Prepare Job Submit Payload]
S -->|Fail| U[Delete Image, Prepare Warning]

T --> V{Upload Results}
V -->|Success| W[Submit Final Payload]
V -->|Failure| X{Retry or Abandon Job}
Expand All @@ -38,22 +38,22 @@ graph TD
Y -->|Yes| Z{Excessive Faults}
X -->|Abandon| AA[Update Request Status]
U --> W

W --> I{Is Queue Full}
I -->|Yes| M
I -->|No| E
W --> AC[Request Complete]

AC --> AA
AA --> AD[Award Kudos to Worker]
AD --> AE{Excessive Faults}
AE -->|Yes| AF{Restart on Excessive Faults}
AE -->|No| E

AF -->|Yes| AG[Worker Shutdown]
AF -->|No| AH[Temporarily Wait]
AH --> E

Z -->|Yes| B
Z -->|No| AG[Worker Shutdown]
AG --> AI[Worker Offline; Potentially restarted]
AG --> AI[Worker Offline; Potentially restarted]

0 comments on commit 2a5ff48

Please sign in to comment.