Skip to content

queue: edits to new docs #3894

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

Merged
merged 15 commits into from
Sep 8, 2022
Merged

queue: edits to new docs #3894

merged 15 commits into from
Sep 8, 2022

Conversation

jorgeorpinel
Copy link
Contributor

Follow up to #3715 (comment)

@jorgeorpinel jorgeorpinel added A: docs Area: user documentation (gatsby-theme-iterative) C: guide Content of /doc/user-guide labels Aug 25, 2022
@jorgeorpinel jorgeorpinel requested a review from pmrowla August 25, 2022 04:03
@shcheklein shcheklein temporarily deployed to dvc-org-queue-edits-sjmlm4mkye August 25, 2022 04:04 Inactive
@jorgeorpinel jorgeorpinel changed the title guide: update exp queue running examples queue: edits to new docs Aug 25, 2022
@jorgeorpinel jorgeorpinel mentioned this pull request Aug 25, 2022
2 tasks
@shcheklein shcheklein temporarily deployed to dvc-org-queue-edits-sjmlm4mkye August 25, 2022 04:06 Inactive
Comment on lines 213 to 215
When you've created experiments to be run in the queue with
`dvc exp run --queue` and later decide not to run them, you can remove them with
`dvc exp remove --queue`.
When you've created experiments to be run in the queue with `dvc queue start`
and later decide not to run them, you can remove them with
`dvc queue remove --queued`.
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@pmrowla should we make this update in other places? The docs still mention exp run --queue a lot.

Copy link
Contributor

Choose a reason for hiding this comment

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

The issue here was that dvc exp run --queue was explaining the way the user "created experiments with ..." but dvc queue start is the way the user would "run experiments with ...".

So the original intention was more like

When you've created experiments with dvc exp run --queue and later decide not to run them, ...

I guess the question is whether or not we can just say "added experiments to the queue" or "queued experiments" instead of providing the commands in these parts of the user guide?

Copy link
Contributor Author

@jorgeorpinel jorgeorpinel Sep 7, 2022

Choose a reason for hiding this comment

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

the question is whether or not we can just say "added experiments to the queue" or "queued experiments" instead of providing the commands

Great Q @pmrowla. I think that in the User Guide (as is the case), we should indeed use descriptive phrasing more, but link to the corresponding sections in the same or other guides.

However, in Refs it's better to link to other commands so it stays self-contained (linking to guides additionally in admonitions is also good, for those who want/need more reading).

Added to best practices.

@github-actions
Copy link
Contributor

github-actions bot commented Aug 25, 2022

Link Check Report

All 10 links passed!

@shcheklein shcheklein temporarily deployed to dvc-org-queue-edits-sjmlm4mkye August 25, 2022 04:48 Inactive
@shcheklein shcheklein temporarily deployed to dvc-org-queue-edits-sjmlm4mkye August 25, 2022 04:55 Inactive
@shcheklein shcheklein temporarily deployed to dvc-org-queue-edits-sjmlm4mkye August 25, 2022 05:29 Inactive
@jorgeorpinel jorgeorpinel marked this pull request as ready for review August 25, 2022 05:29
Comment on lines -15 to +18
Starts one or more task queue worker processes. Each worker process will consume
and execute one queued experiment task at a time in the background, until either
`dvc queue stop` is used or the queue is empty.
Starts one or more workers (`--jobs`) to process experiments. Each worker will
consume and execute one queued experiment tasks at a time in the background,
until either `dvc queue stop` is used or the queue is empty.
Copy link
Contributor Author

@jorgeorpinel jorgeorpinel Aug 25, 2022

Choose a reason for hiding this comment

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

  • For a possible future follow up: review terms "task queue"/"queued (experiment) task" and "worker process(es)" everywhere. They're probably unnecessary IMO. See ref: document dvc queue #3715 (review)

@jorgeorpinel jorgeorpinel added the C: ref Content of /doc/*-reference label Aug 25, 2022
@shcheklein shcheklein temporarily deployed to dvc-org-queue-edits-sjmlm4mkye August 25, 2022 05:57 Inactive
@shcheklein shcheklein temporarily deployed to dvc-org-queue-edits-sjmlm4mkye August 25, 2022 06:03 Inactive
@shcheklein shcheklein temporarily deployed to dvc-org-queue-edits-sjmlm4mkye August 25, 2022 06:08 Inactive
Comment on lines 18 to +21
## Description

Removes the specified queued or completed experiment tasks from the queue. For
completed tasks, this will also remove any associated output logs.
Removes the specified queued or completed experiment `task`(s) from the queue.
For completed tasks, this will also remove any associated output logs.
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Do we need to specify "queued or completed"? What other states are there? Only running, I suppose? If so, could phrase like "removes queued exp... Doesn't work with running experiments -- see queue kill".

Copy link
Contributor

@pmrowla pmrowla Aug 25, 2022

Choose a reason for hiding this comment

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

There will be other possible states after iterative/dvc#8158

The previous definition of "running" was just "not queued and not completed", but after that PR, RUNNING state in DVC UI specifically means "executing pipeline". And there are other new states to represent setup and cleanup of the experiment.

So for the docs purposes, I think "queued or completed" is still the correct description here. It may also now be better to use something like "active" as the generic "not queued or completed" term instead of "running", so we would get something like "Doesn't work with running active experiments"

Copy link
Contributor

Choose a reason for hiding this comment

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

There are also failed experiments that probably should be added to the types of tasks that can be removed.

Active/inactive are new terms but seem intuitive. I'm fine with whatever you both decide.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It may also now be better to use something like "active" as the generic

I was thinking "in progress" but maybe yours is better.

There are also failed experiments

So again, maybe better to phrase like "Removes non-active experiments from the queue. See queue kill to interrupt active ones" @dberenbaum ?

+ at some point (docs for iterative/dvc#8158?) we could explicitly document the states, maybe grouped by active vs. not.

Copy link
Contributor

Choose a reason for hiding this comment

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

So again, maybe better to phrase like "Removes non-active experiments from the queue. See queue kill to interrupt active ones" @dberenbaum ?

Sounds good, thanks!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated in afd08c3.

explicitly document the states, maybe grouped by active vs. not

This is pending. Feel free to make an issue/task/note somewhere. Thanks

@shcheklein shcheklein temporarily deployed to dvc-org-queue-edits-sjmlm4mkye August 25, 2022 06:12 Inactive
@shcheklein shcheklein temporarily deployed to dvc-org-queue-edits-sjmlm4mkye August 25, 2022 06:20 Inactive
`dvc exp remove --queue`.
When you've created experiments to be run in the queue with `dvc queue start`
and later decide not to run them, you can remove them with
`dvc queue remove --queued`.
Copy link
Contributor

Choose a reason for hiding this comment

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

I thought we agreed that dvc exp remove --queue will stay and we will generally recommend exp over low-level queue commands? Not that important, just surprised to see this suggestion.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I rolled this back and rephrased a little (6759473) to preserve the original intention (explained by @pmrowla in #3894 (comment)). PTAL

@dberenbaum But it wasn't that clear to me that a) we won't recommend queue start over exp run --all at least until new aliases are decided; and b) why was exp remove --queue changed to queue remove --queued in the original PR then? (Should we roll that back?)

@dberenbaum
Copy link
Contributor

Thanks @jorgeorpinel! Would you mind taking a look at my few comments and then hopefully we can merge and call this done?

@shcheklein shcheklein temporarily deployed to dvc-org-queue-edits-sjmlm4mkye September 7, 2022 07:07 Inactive
@shcheklein shcheklein temporarily deployed to dvc-org-queue-edits-sjmlm4mkye September 7, 2022 07:12 Inactive
@shcheklein shcheklein temporarily deployed to dvc-org-queue-edits-sjmlm4mkye September 7, 2022 07:36 Inactive
`dvc exp run --queue` and later decide not to run them, you can remove them with
`dvc exp remove --queue`.
When you've queued experiments with `dvc exp run --queue` and later decide not
to run them, you can remove them with `dvc exp remove --queue`.
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe mention both dvc exp remove and dvc queue remove or keep it generic as suggested above. However, whatever we decide, it should be consistent with the examples below (see line 236 below).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Rolled back line 236.

keep it generic as suggested above

That seems like a bigger task that applies to many places probably. I'll leave it up to you to create an issue, etc. if needed!

@shcheklein shcheklein temporarily deployed to dvc-org-queue-edits-sjmlm4mkye September 7, 2022 22:55 Inactive
@shcheklein shcheklein temporarily deployed to dvc-org-queue-edits-sjmlm4mkye September 7, 2022 22:59 Inactive
Copy link
Contributor

@dberenbaum dberenbaum left a comment

Choose a reason for hiding this comment

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

Thanks @jorgeorpinel!

@dberenbaum dberenbaum merged commit f79d964 into main Sep 8, 2022
@dberenbaum dberenbaum deleted the queue/edits branch September 8, 2022 16:59
@jorgeorpinel jorgeorpinel added the type: enhancement Something is not clear, small updates, improvement suggestions label Nov 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A: docs Area: user documentation (gatsby-theme-iterative) C: guide Content of /doc/user-guide C: ref Content of /doc/*-reference type: enhancement Something is not clear, small updates, improvement suggestions
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants