-
Notifications
You must be signed in to change notification settings - Fork 1.3k
fix ignored job count #7373
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 ignored job count #7373
Conversation
the `jobs` kwarg was not being passed down properly, resulting in it being ignored in some cases (push/pull/gc)
74918b9 to
dfcb7d2
Compare
|
|
||
| odb = self.cloud.get_remote_odb(remote, "gc -c") | ||
| removed = ogc(odb, used_obj_ids) | ||
| removed = ogc(odb, used_obj_ids, jobs=jobs) |
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.
Seems like we were ignoring job count in gc too
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.
We have an issue for that: #5961.
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.
Should this P.R. close #5961 ?
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.
I'm looking into how easy it would be to add basic multithreading to gc. For now, it only uses multithreading when listing objects from the odb (odb.all()) using _list_hashes_traverse.
I think it should #5961 should be closed in another PR.
|
|
||
| def test_cloud_cli(tmp_dir, dvc, remote): | ||
| args = ["-v", "-j", "2"] | ||
| def test_cloud_cli(tmp_dir, dvc, remote, mocker): |
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.
This test is getting crazier and crazier :) We'll get rid of it when we have lower level testing in dvc-data/objects.
efiop
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.
Thank you, @dtrifiro ! 🙏
Co-authored-by: Restyled.io <commits@restyled.io> Co-authored-by: Jorge Orpinel <jorgeorpinel@users.noreply.github.com> Co-authored-by: restyled-io[bot] <32688539+restyled-io[bot]@users.noreply.github.com> As [2.9.5](https://github.com/iterative/dvc/releases/tag/2.9.5) includes treeverse/dvc#7373, we can merge this now.
Co-authored-by: Restyled.io <commits@restyled.io> Co-authored-by: Jorge Orpinel <jorgeorpinel@users.noreply.github.com> Co-authored-by: restyled-io[bot] <32688539+restyled-io[bot]@users.noreply.github.com> As [2.9.5](https://github.com/iterative/dvc/releases/tag/2.9.5) includes treeverse/dvc#7373, we can merge this now.
jobskwarg was not being passed on properlyFixes #7319