Skip to content

Commit

Permalink
Merge 81806ec into 7354c8b
Browse files Browse the repository at this point in the history
  • Loading branch information
okraskaj committed Jun 28, 2019
2 parents 7354c8b + 81806ec commit 859541c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions reana_workflow_controller/workflow_run_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,10 @@ def _workflow_engine_env_vars(self):
"""Return necessary environment variables for the workflow engine."""
env_vars = list(WorkflowRunManager.engine_mapping[
self.workflow.type_]['environment_variables'])
env_vars.extend([{
'name': 'REANA_USER_ID',
'value': str(self.workflow.owner_id)
}])
cvmfs_volumes = 'false'
for resource, value in self.workflow.reana_specification['workflow'].\
get('resources', {}).items():
Expand Down Expand Up @@ -358,6 +362,10 @@ def _create_job_spec(self, name, command=None, image=None,
if os.getenv('FLASK_ENV') == 'development':
job_controller_env_vars.extend(
current_app.config['DEBUG_ENV_VARS'])
job_controller_env_vars.extend([{
'name': 'REANA_USER_ID',
'value': str(self.workflow.owner_id)
}])
job_controller_container.env.extend(job_controller_env_vars)
job_controller_container.volume_mounts = [
{
Expand Down

0 comments on commit 859541c

Please sign in to comment.