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 · 1 comment
Open

env: expose additional environment variables to jobs #454

mdonadoni opened this issue May 28, 2024 · 1 comment

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.

@chinta-sunil-varma
Copy link

hi @mdonadoni

i would like to work on this issue. I'm new to open source and it would help a lot if you can breakdown the issue.

and also can you be more specific on what additional env variables should i add more in "_extend_env_vars" function?

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

can you please elaborate on how i can accomplish this task?

thanks.

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

2 participants