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

parameterization: make parameters avaliable to other suite.rc sections #2453

Closed
ColemanTom opened this issue Oct 19, 2017 · 6 comments
Closed

Comments

@ColemanTom
Copy link
Contributor

If possible, I think it could be useful to extend the parameterizing mechanism for task names to be usable for custom messages for triggering purposes.

e.g.

graph = """
foo:out_1 => bar_1
foo:out_2 => bar_2
foo:out_3 => bar_3
"""

Could simplify to:

graph = "foo:out<n> => bar<n>"

Similarly

[[some_polling_task]]]
    [[[output]]]
        out_1 = "message_1"
        out_2 = "message_2"
        out_3 = "message_3"

Becomes:

[[some_polling_task]]]
    [[[output]]]
         out<n> = "message<n>"

NOTE: I'm relatively inexperienced with Cylc, so these may not be the most Cylc-y way of doing things. If there are better approaches to take I would welcome them.

Regards,
Tom

@matthewrmshin matthewrmshin added this to the later milestone Oct 19, 2017
@oliver-sanders
Copy link
Member

Updating the title of this issue to reflect the broader issue of parameters not being available throughout most of the cylc configuration. Parameterizations, currently, can only be used in the graph, inherit and script (via an environment variable) items.

@oliver-sanders oliver-sanders changed the title Feature idea: Ability to use parameter mechanism for custom messages parameterization: make parameters avaliable to other suite.rc sections Oct 19, 2017
@hjoliver
Copy link
Member

hjoliver commented Oct 19, 2017

Expanding on Oliver's point a bit - current use reflects the fact that suite parameters are exclusively for parameterizing task names, not a general parameterization mechanism. However I think @ColemanTom's suggestion on this issue is a very natural extension. And then #2456 takes it even further...

@hjoliver
Copy link
Member

hjoliver commented Oct 9, 2018

A related thread on the mail list: https://groups.google.com/forum/#!topic/cylc/NIl0yWTGq-M

@hjoliver
Copy link
Member

hjoliver commented Aug 5, 2019

@trwhitcomb has posted another suggestion on Discourse: it would be useful to have parameterised external triggers. https://cylc.discourse.group/t/parameterized-clock-triggers/114

@matthewrmshin matthewrmshin modified the milestones: later, cylc-9 Aug 28, 2019
@oliver-sanders
Copy link
Member

Likely the best solution is to supersede this with #1962

@hjoliver
Copy link
Member

ditto #3229 (comment)
(however, if we do get a chance it might be worth reopening this one - for outputs and xtriggers - in suite.rc parameters)

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

No branches or pull requests

4 participants