Skip to content

ref: missing adds --jobs#3199

Merged
jorgeorpinel merged 9 commits into
masterfrom
ref-Add-missing-`--jobs`-option
Jan 28, 2022
Merged

ref: missing adds --jobs#3199
jorgeorpinel merged 9 commits into
masterfrom
ref-Add-missing-`--jobs`-option

Conversation

@daavoo
Copy link
Copy Markdown
Contributor

@daavoo daavoo commented Jan 20, 2022

  • And update cmd list in jobs config option

@daavoo daavoo added the C: ref Content of /doc/*-reference label Jan 20, 2022
@daavoo daavoo changed the title ref: Add missing --jobs option. ref: add: Describe missing --jobs option. Jan 20, 2022
@shcheklein shcheklein temporarily deployed to dvc-org-ref-add-missing-nhz5ji January 20, 2022 10:36 Inactive
Co-authored-by: Restyled.io <commits@restyled.io>
@shcheklein shcheklein temporarily deployed to dvc-org-ref-add-missing-nhz5ji January 20, 2022 10:37 Inactive
@shcheklein shcheklein temporarily deployed to dvc-org-ref-add-missing-nhz5ji January 20, 2022 11:10 Inactive
Co-authored-by: Restyled.io <commits@restyled.io>
@shcheklein shcheklein temporarily deployed to dvc-org-ref-add-missing-nhz5ji January 20, 2022 11:16 Inactive
@daavoo daavoo self-assigned this Jan 20, 2022
@daavoo daavoo requested a review from a team January 20, 2022 11:16
@jorgeorpinel jorgeorpinel changed the title ref: add: Describe missing --jobs option. ref: missing adds --jobs Jan 27, 2022
@jorgeorpinel jorgeorpinel added the 🐛 type: bug Something isn't working. label Jan 27, 2022
Comment thread content/docs/command-reference/add.md Outdated
Comment on lines +172 to +176
- `-j <number>`, `--jobs <number>` - Only used if `--to-remote` is also passed.
Parallelism level for DVC to upload data to remote storage. The default value
is 4 \* cpu_count(). For SSH remotes, the default is 4. Note that the default
value can be set using the jobs config option with dvc remote modify. Using
more jobs may speed up the operation.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

For closer consistency with other refs that have this option:

Suggested change
- `-j <number>`, `--jobs <number>` - Only used if `--to-remote` is also passed.
Parallelism level for DVC to upload data to remote storage. The default value
is 4 \* cpu_count(). For SSH remotes, the default is 4. Note that the default
value can be set using the jobs config option with dvc remote modify. Using
more jobs may speed up the operation.
- `-j <number>`, `--jobs <number>` -
parallelism level for DVC to transfer data when using `--to-remote`. The default value
is `4 \* cpu_count()`. For SSH remotes, the default is `4`. Using
more jobs may speed up the operation.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Committed. I removed "Note that the default value can be set using the jobs config option with dvc remote modify" too. It's a good note though, but it kind of overcomplicates the already-complicated description. I wonder if there's a better place to comment on this... ⌛

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

removed "Note that the default value can be set using the jobs config option...

Maybe we should change the text (in all refs) to something like "The default is 4*cpu (can be set with dvc remote modify jobs) :...

Linked to https://dvc.org/doc/command-reference/remote/modify#available-parameters-for-all-remotes

@jorgeorpinel jorgeorpinel temporarily deployed to dvc-org-ref-add-missing-nhz5ji January 27, 2022 06:01 Inactive
Co-authored-by: Restyled.io <commits@restyled.io>
@jorgeorpinel jorgeorpinel temporarily deployed to dvc-org-ref-add-missing-nhz5ji January 27, 2022 06:02 Inactive
jorgeorpinel
jorgeorpinel previously approved these changes Jan 27, 2022
Comment on lines +172 to +174
- `-j <number>`, `--jobs <number>` - parallelism level for DVC to transfer data
when using `--to-remote`. The default value is `4 \* cpu_count()`. For SSH
remotes, the default is `4`. Using more jobs may speed up the operation.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I wonder if --jobs also has this same effect in import-url --to-remote. Currently it only refers to downloading the target data. @dberenbaum or @efiop, do you know? Thanks

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

--jobs affects the uploading when using dvc import-url --to-remote so the description should be updated. This also affects dvc update

This comment was marked as resolved.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Moved this Q to #3233

@jorgeorpinel jorgeorpinel dismissed their stale review January 27, 2022 06:25

I found another spot missing add mention...

@jorgeorpinel
Copy link
Copy Markdown
Contributor

jorgeorpinel commented Jan 27, 2022

@daavoo thanks again for this. Mind also completing the list of commands that have --jobs in https://dvc.org/doc/command-reference/remote/modify#available-parameters-for-all-remotes ?

@daavoo
Copy link
Copy Markdown
Contributor Author

daavoo commented Jan 27, 2022

@daavoo thanks again for this. Mind also completing the list of commands that have --jobs in https://dvc.org/doc/command-reference/remote/modify#available-parameters-for-all-remotes ?

Done.

Comment thread content/docs/command-reference/remote/modify.md Outdated
@jorgeorpinel jorgeorpinel requested a deployment to dvc-org-ref-add-missing-nhz5ji January 28, 2022 02:20 Abandoned
Co-authored-by: Restyled.io <commits@restyled.io>
@jorgeorpinel jorgeorpinel temporarily deployed to dvc-org-ref-add-missing-nhz5ji January 28, 2022 02:21 Inactive
@jorgeorpinel jorgeorpinel merged commit 7a830dc into master Jan 28, 2022
@jorgeorpinel jorgeorpinel deleted the ref-Add-missing-`--jobs`-option branch January 28, 2022 02:21
iesahin pushed a commit that referenced this pull request Apr 11, 2022
* Update add.md

* Restyled by prettier (#3200)

Co-authored-by: Restyled.io <commits@restyled.io>

* Update add.md

* Restyled by prettier (#3201)

Co-authored-by: Restyled.io <commits@restyled.io>

* Update content/docs/command-reference/add.md

* Restyled by prettier (#3227)

Co-authored-by: Restyled.io <commits@restyled.io>

* Add missing commands with `--jobs`.

* Update content/docs/command-reference/remote/modify.md

* Restyled by prettier (#3234)

Co-authored-by: Restyled.io <commits@restyled.io>

Co-authored-by: restyled-io[bot] <32688539+restyled-io[bot]@users.noreply.github.com>
Co-authored-by: Restyled.io <commits@restyled.io>
Co-authored-by: Jorge Orpinel <jorgeorpinel@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

C: ref Content of /doc/*-reference 🐛 type: bug Something isn't working.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants