Skip to content

Validate and list command: list unused namespaces. - #7395

Open
hjoliver wants to merge 5 commits into
cylc:masterfrom
hjoliver:task-runtime-extras
Open

Validate and list command: list unused namespaces.#7395
hjoliver wants to merge 5 commits into
cylc:masterfrom
hjoliver:task-runtime-extras

Conversation

@hjoliver

@hjoliver hjoliver commented Jul 22, 2026

Copy link
Copy Markdown
Member

Close #7392

Validation, and cylc list option to print all unused (i.e., not in the graph) runtime namespaces.

Example: task f is implicit, tasks e, k and FAM_2 are not used by the graph. (FAM_2 is inherited only by k which is not used):

[scheduling]
    [[graph]]
        R1 = "a & FAM_1 & f"
[runtime]
    [[a, e, f]]
    [[FAM_1]]
    [[b, c, d]]
       inherit = FAM_1
    [[FAM_2]]
    [[k]]
       inherit = FAM_2

Validation:

$ cylc val .
INFO - There are runtime namespaces not used by the workflow:
    * e
    * FAM_2
    * k

List command:

$ cylc list --unused-namespaces
FAM_2
e
k

Check List

  • I have read CONTRIBUTING.md and added my name as a Code Contributor.
  • Contains logically grouped changes (else tidy your branch by rebase).
  • Does not contain off-topic changes (use other PRs for other changes).
  • Applied any dependency changes to both setup.cfg (and conda-environment.yml if present).
  • Tests are included (or explain why tests are not needed).
  • Changelog entry included if this is a change that can affect users
  • Cylc-Doc pull request opened if required at cylc/cylc-doc/pull/XXXX.
  • If this is a bug fix, PR should be raised against the relevant ?.?.x branch.

@hjoliver hjoliver added this to the 8.7.0 milestone Jul 22, 2026
@hjoliver
hjoliver requested a review from oliver-sanders July 22, 2026 04:25
@hjoliver hjoliver self-assigned this Jul 22, 2026
@hjoliver
hjoliver force-pushed the task-runtime-extras branch from 6a93a2c to 2e8389d Compare August 17, 2026 02:41
@hjoliver
hjoliver marked this pull request as ready for review August 17, 2026 02:46
@hjoliver

Copy link
Copy Markdown
Member Author

Good to go now.

@hjoliver hjoliver changed the title Validate: check for unused namespaces. Validate and list command: list unused namespaces. Aug 17, 2026
Comment thread cylc/flow/config.py Outdated
hjoliver and others added 2 commits September 7, 2026 14:12
Co-authored-by: Oliver Sanders <oliver.sanders@metoffice.gov.uk>
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.

list: option to detect tasks defined in [runtime] but not used in [graph]

2 participants