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

Disambiguate 'active tasks'. #798

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

hjoliver
Copy link
Member

@hjoliver hjoliver commented Feb 18, 2025

We're still overloading the term "active tasks" to mean both:

  1. any task in the (n=0) "active window", and
  2. submitted or running tasks, specifically

This PR ensures that "tasks in the active window" is used in the first case, and clarifies the definition for both cases.

(Note we do still need both concepts - some things depend on "task activity" in the more literal sense of submitted jobs; some things depend on the wider active window - but we should not use the same term for both, because they are different).

Successful build requires cylc/cylc-flow#6618

Requirements check-list

  • I have read CONTRIBUTING.md and added my name as a Code Contributor.

@hjoliver hjoliver added this to the 8.4.x milestone Feb 18, 2025
@hjoliver hjoliver self-assigned this Feb 18, 2025
@hjoliver hjoliver force-pushed the disambiguate-active-tasks branch from 982d057 to 56a9107 Compare February 18, 2025 02:06
@hjoliver hjoliver force-pushed the disambiguate-active-tasks branch from 56a9107 to 7af814f Compare February 18, 2025 02:24
@hjoliver hjoliver mentioned this pull request Feb 18, 2025
1 task
Copy link
Member

@wxtim wxtim left a comment

Choose a reason for hiding this comment

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

Sorry, I seem to have gone a bit bonkers on the written English side of the review. Suggestions made after reading text out loud.

Please take or leave my suggestions.

Is it worth checking cylc-flow/flow/cylc/scripts to ensure those descriptions are updated in line with this?


- waiting tasks are not pre-spawned before they are needed
- succeeded tasks are not kept across the active task window
- succeeded tasks are not retained across the :term:`active window`
Copy link
Member

Choose a reason for hiding this comment

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

niff-naff style point - are these bullets sentences?

Suggested change
- succeeded tasks are not retained across the :term:`active window`
- tasks the :term:`active window` when they succeed

Copy link
Member Author

@hjoliver hjoliver Feb 18, 2025

Choose a reason for hiding this comment

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

I can never quite decide if short bullet points should be styled as full sentences or not. I'll rephrase along the lines of your suggestion (can't take it as-is as it seems to be malformed!).

src/glossary.rst Outdated
Comment on lines 93 to 96
The GUI provides a view extending ``n`` (default ``n=1``)
graph edges out from the :term:`active window` of the workflow.
Thus in the context of the GUI the active window may also be
referred to as the `n=0` window.
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
The GUI provides a view extending ``n`` (default ``n=1``)
graph edges out from the :term:`active window` of the workflow.
Thus in the context of the GUI the active window may also be
referred to as the `n=0` window.
By default the GUI provides a view extending ``n`` (default ``n=1``)
graph edges out from the :term:`active window` of the workflow.
In the context of the GUI the active window may also be
referred to as the `n=0` window.

Copy link
Member Author

Choose a reason for hiding this comment

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

I'll skip this suggestion, because:

  1. "By default the GUI ... extending n (default n=1) edges": too much "default"!
  2. The first sentence provides the reason for the second, hence they should be connected by "Thus" or "So".

It is now possible to change the window extent in the GUI via a button in the
toolbar allowing you to see tasks further back in the workflow's history.
You can change the n-window extent in the GUI with a toolbar button, to display
fewer or more tasks around the current ``n=0`` :term:`active window`.
Copy link
Member

Choose a reason for hiding this comment

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

Had you used less I'd have refused to correct (meaning fine) you but it would have irked me.

image

Copy link
Member Author

Choose a reason for hiding this comment

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

No, you should have corrected me if I'd used "less" there! Good writing is about more than just conveying meaning.

Comment on lines 125 to 126
Tasks in the :term:`active window` already have flow membership assigned
(namely that of the parent tasks that spawned them).
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
Tasks in the :term:`active window` already have flow membership assigned
(namely that of the parent tasks that spawned them).
Tasks in the :term:`active window` already have flow membership
assigned. Flow membership is inherited from their parent tasks
when they are spawned.

Copy link
Member Author

Choose a reason for hiding this comment

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

Repeated words and phrases, in close proximity, when the subject is clear from the context kind of stand out as bad style, to me, which is distracting when reading. In this case, however, I think I'll take your suggestion with a slight tweak (I don't like the "their" there), since the second sentence sounds like an important statement in its own right.

@hjoliver
Copy link
Member Author

Thanks @wxtim - I took most of you suggestions, or variants thereof, and argued against several.

@hjoliver
Copy link
Member Author

Successful build requires cylc/cylc-flow#6618

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants