-
Notifications
You must be signed in to change notification settings - Fork 4
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
Optionally dropping DW_JOB_
prefix from environment variables
#199
Comments
Couldn't flux drop those prefixes when it pulls the env vars from the workflow? |
u rite u rite |
(as usual) |
Closing this for an issue in flux-coral2. flux-framework/flux-coral2#201 |
You might not want to drop those prefixes though. We guarantee that "name" is unique within "job" #DWs and within "persistent" #DWs, but we don't guarantee that they're unique across those boundaries. So we might return these two environment variables in the same workflow:
If you drop those prefixes then you'll get a conflict. |
Yeah I agree, and I don't mind the prefixes but maybe some users will. I'll ask Brian and Marty for input. |
Actually, my concern isn't so much the
This allows for things like the following in scripts:
Marty's more in touch with the users than I am and may have a different take on this. But we really want to make the most common single filesystem case very easy, yet still provide enough for advanced users. |
I think both of the ideas you listed above (1 and 2b) are fairly straight forward for us to do. Would you want those new environment variables be in addition to or instead of the current DW_JOB_[name] and DW_PERSISTENT_[name] variables? For the DW_XFS, DW_LUSTRE, etc. I assume those are only for job DWs? Would you want a DW_PERSISTENT variable as well to point to the first first instance of a persistent file system in the workflow? |
Instead of (or in addition to) using environment variables, would it be possible to create the mountpoint name with friendly values or create a symbolic link somewhere to the actual mountpoint? I think that users are already aware of mountpoints like |
I was talking with @behlendorf and @mcfadden8 and the consensus was that LC users would prefer to have their environment variables be just
NAME
instead ofDW_JOB_{NAME}
. Presumably the same goes forDW_PERSISTENT_{NAME}
. Could this be enabled with some additional configuration?The text was updated successfully, but these errors were encountered: