-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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 concurrent script loading with force_redownload #6718
Fix concurrent script loading with force_redownload #6718
Conversation
The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update. |
# Define a directory with a unique name in our dataset or metric folder | ||
# path is: ./datasets|metrics/dataset|metric_name/hash_from_code/script.py | ||
# we use a hash as subdirectory_name to be able to have multiple versions of a dataset/metric processing file together | ||
importable_subdirectory = os.path.join(importable_directory_path, subdirectory_name) | ||
importable_local_file = os.path.join(importable_subdirectory, name + ".py") | ||
importable_file = os.path.join(importable_subdirectory, name + ".py") |
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.
just a variable name change for consistency
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!
Co-authored-by: Mario Šaško <mariosasko777@gmail.com>
Show benchmarksPyArrow==8.0.0 Show updated benchmarks!Benchmark: benchmark_array_xd.json
Benchmark: benchmark_getitem_100B.json
Benchmark: benchmark_indices_mapping.json
Benchmark: benchmark_iterating.json
Benchmark: benchmark_map_filter.json
Show updated benchmarks!Benchmark: benchmark_array_xd.json
Benchmark: benchmark_getitem_100B.json
Benchmark: benchmark_indices_mapping.json
Benchmark: benchmark_iterating.json
Benchmark: benchmark_map_filter.json
|
I added
lock_importable_file
inget_dataset_builder_class
andextend_dataset_builder_for_streaming
to fix the issue, and I also added a testcc @clefourrier