Skip to content

Commit

Permalink
Provide output files in job model
Browse files Browse the repository at this point in the history
  • Loading branch information
shirte committed Dec 21, 2024
1 parent ad92c13 commit 60e22d3
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion nerdd_backend/models/job.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,12 @@

from pydantic import BaseModel

__all__ = ["Job", "JobCreate", "JobPublic", "JobUpdate", "JobInternal"]
__all__ = ["Job", "JobCreate", "JobPublic", "JobUpdate", "JobInternal", "OutputFile"]


class OutputFile(BaseModel):
format: str
url: str


class Job(BaseModel):
Expand Down Expand Up @@ -33,6 +38,7 @@ class JobPublic(Job):
num_pages_total: Optional[int]
num_pages_processed: int
page_size: int
output_files: List[OutputFile]
job_url: str
results_url: str

Expand Down

0 comments on commit 60e22d3

Please sign in to comment.