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

env: expose additional environment variables to jobs #454

Open
mdonadoni opened this issue May 28, 2024 · 0 comments
Open

env: expose additional environment variables to jobs #454

mdonadoni opened this issue May 28, 2024 · 0 comments

Comments

@mdonadoni
Copy link
Member

The following variables are currently exposed to jobs:

def _extend_env_vars(self, env_vars):
"""Extend environment variables with REANA specific ones."""
prefix = "REANA"
env_vars[prefix + "_WORKSPACE"] = self.workflow_workspace
env_vars[prefix + "_WORKFLOW_UUID"] = str(self.workflow_uuid)
return env_vars

We should consider adding more, such as REANA_WORKFLOW_NAME.

We should also consider exposing these environment variables to job-controller itself, for example so that they can be read from a Snakemake specification.

@mdonadoni mdonadoni added this to 0.95.0 Aug 8, 2024
@mdonadoni mdonadoni moved this to Backlog in 0.95.0 Aug 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Backlog
Development

No branches or pull requests

1 participant