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

remote: use configured jobs number #5747

Merged
merged 1 commit into from
Apr 8, 2021
Merged

Conversation

pared
Copy link
Contributor

@pared pared commented Mar 31, 2021

Thank you for the contribution - we'll try to review it as soon as possible. πŸ™

Fixes #5647

@@ -38,7 +38,7 @@ class BaseFileSystem:
scheme = "base"
REQUIRES: ClassVar[Dict[str, str]] = {}
PATH_CLS = URLInfo # type: Any
JOBS = 4 * cpu_count()
_JOBS = 4 * cpu_count()
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Renaming to stress the fact it should not be used outside this class and its derivatives.

@@ -229,7 +229,7 @@ def list_hashes_traverse(
keeping all of it in memory.
"""
num_pages = remote_size / self.fs.LIST_OBJECT_PAGE_SIZE
if num_pages < 256 / self.fs.JOBS:
if num_pages < 256 / self.fs.jobs:
Copy link
Contributor Author

Choose a reason for hiding this comment

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

If we start relaying on jobs in remote.base - we should adjust status optimizations to that.

@efiop efiop merged commit eccc320 into iterative:master Apr 8, 2021
@efiop efiop added the bugfix fixes bug label Apr 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix fixes bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

push: remote.jobs in .dvc/config is ignored
3 participants