Skip to content
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

fix: 🐛 fix migration script #707

Merged
merged 2 commits into from
Jan 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion chart/docker-images.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"dockerImage": {
"reverseProxy": "docker.io/nginx:1.20",
"jobs": {
"mongodbMigration": "huggingface/datasets-server-jobs-mongodb_migration:sha-3de1315"
"mongodbMigration": "huggingface/datasets-server-jobs-mongodb_migration:sha-48dee06"
},
"services": {
"admin": "huggingface/datasets-server-services-admin:sha-3de1315",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def validate(self) -> None:
logging.info("Ensure that a random selection of jobs have the 'priority' field set to 'normal'")

def custom_validation(doc: JobSnapshot) -> None:
if doc.priority != "normal":
if doc.priority != Priority.NORMAL:
raise ValueError("priority should be 'normal'")

check_documents(DocCls=JobSnapshot, sample_size=10, custom_validation=custom_validation)
Expand Down