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

workflow name environment variable #4438

Closed
oliver-sanders opened this issue Sep 28, 2021 · 1 comment · Fixed by #4455
Closed

workflow name environment variable #4438

oliver-sanders opened this issue Sep 28, 2021 · 1 comment · Fixed by #4455
Assignees
Labels
Milestone

Comments

@oliver-sanders
Copy link
Member

Cylc 8 has introduced the concept of run names. This means that with regular usage CYLC_SUITE_NAME has changed from <name> to <name>/<run>.

Unfortunately CYLC_SUITE_NAME and ROSE_SUITE_NAME are often used within workflows to derive other properties such as file names, data labels and file hierarchies.

To help ease the transition to Cylc 8 and to prevent the myriad of enevitable bodges e.g:

cut -d '/' -f 1 <<< $CYLC_SUITE_NAME
echo $(echo $CYLC_SUITE_NAME | sed 's/\/run[0-9]//')
echo ${CYLC_SUITE_NAME/run*}

We could consider providing the base workflow name with a separate variable.

Proposal:

We could consider backporting this to Cylc 7 to assist with migration efforts.

@oliver-sanders oliver-sanders added the question Flag this as a question for the next Cylc project meeting. label Sep 28, 2021
@oliver-sanders oliver-sanders added this to the cylc-8.0rc1 milestone Sep 28, 2021
@hjoliver
Copy link
Member

👍

@hjoliver hjoliver removed the question Flag this as a question for the next Cylc project meeting. label Sep 29, 2021
@wxtim wxtim assigned wxtim and unassigned wxtim Oct 1, 2021
@MetRonnie MetRonnie modified the milestones: cylc-8.0rc1, cylc-8.0b3 Oct 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants