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

Stop the count #481

Merged
merged 6 commits into from
Jul 27, 2022
Merged

Stop the count #481

merged 6 commits into from
Jul 27, 2022

Conversation

lhoestq
Copy link
Member

@lhoestq lhoestq commented Jul 27, 2022

fix #480

@lhoestq lhoestq requested a review from severo July 27, 2022 11:05
@HuggingFaceDocBuilderDev
Copy link

HuggingFaceDocBuilderDev commented Jul 27, 2022

The documentation is not available anymore as the PR was closed or merged.

@severo
Copy link
Collaborator

severo commented Jul 27, 2022

Thanks!

I already set an environment variable for datasets in the worker, see here:

https://github.com/huggingface/datasets-server/blob/519cf70758e34e54f0647560f36dc1f2ac395720/services/worker/src/worker/config.py#L52-L53

I think it would be better to set HF_UPDATE_DOWNLOAD_COUNTS there too, for consistency.

@severo
Copy link
Collaborator

severo commented Jul 27, 2022

I think it's OK to hardcode it to false (the alternative would be to pass an env var to the image, but I don't think we will ever want to set it to true)

@lhoestq
Copy link
Member Author

lhoestq commented Jul 27, 2022

Ok, I just moved the change to config.py :)

Copy link
Collaborator

@severo severo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Excellent, thanks!

@severo
Copy link
Collaborator

severo commented Jul 27, 2022

Beware, before merging, we have to update the docker image tag in https://github.com/huggingface/datasets-server/blob/main/chart/docker-images.yaml (with 3dc7f29, the last commit, once the build-and-push-image job has succeeded). And let the CI work on the new docker tag

@severo
Copy link
Collaborator

severo commented Jul 27, 2022

e2e error, but it's a known issue, we need to fix #367. We can merge

@lhoestq lhoestq merged commit c80de5c into main Jul 27, 2022
@lhoestq lhoestq deleted the stop-the-count branch July 27, 2022 14:46
@severo
Copy link
Collaborator

severo commented Jul 27, 2022

🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Don't increase the datasets download counts on hf.co
3 participants