-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1069 from OCR-D/processing_server_ext_1046
Processing server extension (#1046)
- Loading branch information
Showing
15 changed files
with
546 additions
and
93 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
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,22 @@ | ||
from pydantic import BaseModel | ||
from typing import Optional | ||
from .job import StateEnum | ||
|
||
|
||
class PYResultMessage(BaseModel): | ||
""" Wraps the parameters required to make a result message request | ||
""" | ||
job_id: str | ||
state: StateEnum | ||
path_to_mets: Optional[str] = None | ||
workspace_id: Optional[str] = None | ||
|
||
class Config: | ||
schema_extra = { | ||
'example': { | ||
'job_id': '123123123', | ||
'state': 'SUCCESS', | ||
'path_to_mets': '/path/to/mets.xml', | ||
'workspace_id': 'c7f25615-fc17-4365-a74d-ad20e1ddbd0e' | ||
} | ||
} |
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.