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

config: template variables specified to play should be loaded #4740

Closed
oliver-sanders opened this issue Mar 15, 2022 · 4 comments · Fixed by #5229
Closed

config: template variables specified to play should be loaded #4740

oliver-sanders opened this issue Mar 15, 2022 · 4 comments · Fixed by #5229
Assignees
Labels
Milestone

Comments

@oliver-sanders
Copy link
Member

Template variables can be provided to cylc play, they are then stored in the DB so they can be used with future restarts.

However, the cylc config command is currently unaware of this:

$ cylc install one
$ cylc config
$ cylc play one -s "FOO='bar'"
$ cylc config  # should load FOO='bar' from the workflow DB

Note that Cylc-Rose can also be used to specify template variables (at install time), these variables are store in a file which is loaded when cylc config is invoked.

Pull requests welcome!

@oliver-sanders
Copy link
Member Author

Note: This ability to extract template vars from the run dir is also required by #3896

@oliver-sanders
Copy link
Member Author

This might be a feature nicely covered with a Cylc plugin i.e. a new entry point for functions which extract options and stuff from the run dir.

@oliver-sanders
Copy link
Member Author

@wxtim This is related to cylc vro #5121

@wxtim wxtim self-assigned this Oct 5, 2022
@wxtim
Copy link
Member

wxtim commented Oct 5, 2022

@wxtim This is related to cylc vro #5121

I think that I already have a proof of concept which is nearly ready for this, so I've assigned it to myself.

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