-
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.
* First sketches of whole system * Error handling * Added full initial version of background task * Fixes to rationalize database schema * Added integratoin test for corruption endpoints * Add info on rollback * Respect soft timeout * Add corruption fixer settings and docs
- Loading branch information
Showing
17 changed files
with
1,054 additions
and
105 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
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,24 @@ | ||
""" | ||
Models for the corruption fixing endpoints. | ||
""" | ||
|
||
from pydantic import BaseModel | ||
|
||
|
||
class CorruptionPreparationRequest(BaseModel): | ||
file_name: str | ||
librarian_name: str | ||
|
||
|
||
class CorruptionPreparationResponse(BaseModel): | ||
ready: bool | ||
|
||
|
||
class CorruptionResendRequest(BaseModel): | ||
librarian_name: str | ||
file_name: str | ||
|
||
|
||
class CorruptionResendResponse(BaseModel): | ||
success: bool | ||
destination_transfer_id: int |
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
Oops, something went wrong.