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

Worker cannot use os.environ parameters #25

Closed
akrasuski opened this issue Oct 6, 2019 · 2 comments
Closed

Worker cannot use os.environ parameters #25

akrasuski opened this issue Oct 6, 2019 · 2 comments
Assignees

Comments

@akrasuski
Copy link
Contributor

Worker doesn't use environmental parameters for project definition. It obtains this as an argument (URL) for worker.py file. Hence such a definition of conf.json doesn' t work.

partition_query.py:
self.project_conf=self.json.read('{}/conf.json'.format(os.environ['AAMKS_PROJECT']))

If it is necessary worker.py file has defined conf.json. The question is whether it should be passed or not.

@mimooh
Copy link
Member

mimooh commented Oct 6, 2019 via email

@akrasuski
Copy link
Contributor Author

I'm not very happy with the idea of mixing environments (python and shell) just in order not to pass a variable as an argument for methods. But ok as Trump says.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants