-
Notifications
You must be signed in to change notification settings - Fork 94
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
Allow platform default directives #4896
Allow platform default directives #4896
Conversation
In this case the suggested refactor would IMO make the code less rather than more readable.
d7d7e51
to
5179e5b
Compare
5179e5b
to
bdd609f
Compare
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.
Looks good, thanks @wxtim
cylc/flow/cfgspec/globalcfg.py
Outdated
Job runner (batch scheduler) directives. | ||
|
||
Default directives for :cylc:conf: | ||
`flow.cylc[runtime][<namespace>][directives]` |
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.
Looks like the precedent for this kind of thing is
Job runner (batch scheduler) directives. | |
Default directives for :cylc:conf: | |
`flow.cylc[runtime][<namespace>][directives]` | |
:Defaults for: :cylc:conf:`flow.cylc[runtime][<namespace>][directives]` |
(avoiding duplicating the description)
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.
Sorry, Dave and I have had a discussion about this, which we've not documented, but we have it in mind to go through all these cases: I think the agreement was that there should be:
- A headline description [both]
- A fuller description [only one config]
- A link to the other conifg [both]
Is that the conclusion you remember @dpmatthews
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.
Fair enough, in that case
Job runner (batch scheduler) directives. | |
Default directives for :cylc:conf: | |
`flow.cylc[runtime][<namespace>][directives]` | |
:Defaults for: :cylc:conf:`flow.cylc[runtime][<namespace>][directives]` | |
Job runner (batch scheduler) directives. |
:Defaults for:
is some kind of sphinx directive by the look of it, possibly from cylc-sphinx-extensions
@@ -1299,7 1299,9 @@ def get_job_conf( | |||
itask.platform['job runner command template'] | |||
), | |||
'dependencies': itask.state.get_resolved_dependencies(), | |||
'directives': rtconfig['directives'], | |||
'directives': { |
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.
@MetRonnie - I knew there should be a 1-line for this!
Co-authored-by: Ronnie Dutta <61982285 [email protected]>
229858c
to
fc67717
Compare
Co-authored-by: Ronnie Dutta <61982285 [email protected]>
(Functional test failures due to Codecov upload failures) |
* 'master' of https://github.com/cylc/cylc: (47 commits) Global platform default directives (cylc#4896) Raise an error if the user tries to set owner. (cylc#4860) Raise error if there is a relative path in `global.cylc[install]source dirs` (cylc#4887) Added a noqa tag to a new flake8-simplify case. (cylc#4895) Update change log. Don't prompt to clean no workflows. Bump to next dev version Fix task matching bug (cylc#4881) Expand comma separated platform names correctly (cylc#4880) resolvers: add a couple of comments Prepare release 8.0rc3 Fix change log. Add & amalgamate jinja2 error tests shellcheck fix Tweak show help text. Fix wrong context lines for jinja2 error Fix missing context lines for jinja2 error Improve new func. test. Syntax highlighting: don't symlink files now they are extracted using cylc get-resources Emacs syntax highlighting: fix filename pattern matching ...
Allow setting of default batch system directives in the platform config
* upstream/master: Global platform default directives (cylc#4896)
This is a change with no associated Issue.
The issue
Cylc 7 allowed the setting of default job runner (batch system) directives using [test battery][batch systems][SYSTEM][directives].
Allow the setting of default directives in Cylc 8.
Requirements check-list
CONTRIBUTING.md
and added my name as a Code Contributor.setup.cfg
andconda-environment.yml
.globalcfg.py