-
Notifications
You must be signed in to change notification settings - Fork 4
Prepro rework #568
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Prepro rework #568
Conversation
…o be compatible with prepro pipeline
for more information, see https://pre-commit.ci
| self.model.project_id == proj_id, | ||
| self.model.filename == filename, | ||
| self.model.status == SDocStatus.finished, | ||
| self.model.processed_status == SDocStatus.finished, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
SDocStatus.finished.value?
| query = query.filter( | ||
| self.model.project_id == proj_id, | ||
| self.model.status == SDocStatus.finished, | ||
| self.model.processed_status == SDocStatus.finished.value, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
SDocStatus.finished ?
mit/ohne .value - beide Varianten werden genutzt. Es sollte einheitlich sein.
| generate_endpoints: EndpointGeneration, | ||
| output_type: type[OutputT] | None = None, | ||
| priority: JobPriority = JobPriority.DEFAULT, | ||
| device: Literal["gpu", "cpu"] = "cpu", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wollen wir da lieber schon einmal ein Enum draus machen?
bigabig
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
No description provided.