Skip to content

Commit

Permalink
Update states.md
Browse files Browse the repository at this point in the history
  • Loading branch information
terrywbrady authored Jan 26, 2024
1 parent 627f40a commit d865105
Showing 1 changed file with 103 additions and 2 deletions.
105 changes: 103 additions & 2 deletions design/queue-2023/states.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
- UpdateReporting --> Completed
- detect any updated statuses and report them
- status = Completed
- Processing_Resumed --> Failed
- UpdateReporting --> Failed
- detect any updated statuses and report them
- status = Completed
- Failed --> Deleted (admin function)
Expand Down Expand Up @@ -240,6 +240,107 @@
- reset status
- Failed --> Deleted (admin function)

## TODO
## Use Cases

### Successful Batch
- User submits manifest with 3 items
- Batch downloads manifest and creates 3 jobs
- Batch: Processing
- Job 1: Pending
- Job 2: Pending
- Job 3: Pending
- Job 2 completes
- Batch: Processing
- Job 1: Pending
- Job 2: Complete
- Job 3: Pending
- Job 3 completes
- Batch: Processing
- Job 1: Pending
- Job 2: Complete
- Job 3: Complete
- Job 1 completes
- Batch: Processing
- Job 1: Complete
- Job 2: Complete
- Job 3: Complete
- Batch goes to Reporting State
- Batch: Reporting
- success email sent to depositor
- Batch goes to Completed State

- document key use cases
- esp retry logic

### Failed Batch
- User submits manifest with 3 items
- Batch downloads manifest and creates 3 jobs
- Batch: Processing
- Job 1: Pending
- Job 2: Pending
- Job 3: Pending
- Job 2 completes
- Batch: Processing
- Job 1: Pending
- Job 2: Complete
- Job 3: Pending
- Job 3 fails
- Batch: Processing
- Job 1: Pending
- Job 2: Complete
- Job 3: Failed
- Job 1 completed
- Batch: Processing
- Job 1: Complete
- Job 2: Complete
- Job 3: Failed
- Batch goes to Reporting State
- Batch: Reporting
- failed email sent to depositor
- Batch goes to Failed State

### Failed Batch with Retry
- User submits manifest with 3 items
- Batch downloads manifest and creates 3 jobs
- Batch: Processing
- Job 1: Pending
- Job 2: Pending
- Job 3: Pending
- Job 2 completes
- Batch: Processing
- Job 1: Pending
- Job 2: Complete
- Job 3: Pending
- Job 3 fails
- Batch: Processing
- Job 1: Pending
- Job 2: Complete
- Job 3: Failed
- Job 1 completed
- Batch: Processing
- Job 1: Complete
- Job 2: Complete
- Job 3: Failed
- Batch goes to Reporting State
- Batch: Reporting
- failed email sent to depositor
- Batch goes to Failed State
- Batch: Failed
- Job 1: Complete
- Job 2: Complete
- Job 3: Failed
- Job 3 restarted
- Batch: Failed
- Job 1: Complete
- Job 2: Complete
- Job 3: Processing*
- Job 3 completes
- Batch: Failed
- Job 1: Complete
- Job 2: Complete
- Job 3: Complete*
- Batch set to UpdateReporting
- Batch: UpdateReporting
- email update to depositor to reflect change in Job 3 status
- Batch set to Complete
- Complete

0 comments on commit d865105

Please sign in to comment.