question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Allow setting environment variable automatically for jobs

See original GitHub issue

This is low priority at the moment, please vote up if you will find it useful.

Control of env variables for launched jobs. This could be based on a special node in the job config:

env:
  OMP_NUM_THREADS: 1 
  # copy env from running machine
  USER: ${env:USER} 

TO BE CLEAR: You can already use environment variables in configs: See the OmegaConf documentation.

This issue is about allowing easier control of the environment variable of Hydra apps for other purposes (for example, setting OMP_NUM_THREADS automatically to 1).

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:24
  • Comments:12 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
omrycommented, Apr 2, 2020

It was not clear from the issue description, I updated it. I recommend everyone here spend the time to read the OmegaConf documentation. there are many good features there you should know about if you use Hydra.

1reaction
omrycommented, Apr 2, 2020
  1. This is a feature request to support automatically SETTING the environment variables for Hydra jobs.
  2. You can already USE environment variables in the config (see my edit to the task description).
  3. I am planning to add this functionality for the next Hydra version.
  4. This is marked as “good first issue”, meaning it’s not hard to implement.

If this is so important to people, they can step up and help.

Read more comments on GitHub >

github_iconTop Results From Across the Web

AWS Batch job environment variables
AWS Batch sets specific environment variables in container jobs. These environment variables provide introspection for the containers inside jobs.
Read more >
Automatically setting jobs (-j) flag for a multicore machine?
Is there some way I can set the -j flag through an environment variable or some other persistent config file so that make...
Read more >
What environment variables are set for job execution? - IBM
Environment variables related to command names and job names can contain up to 4094 ... LSB_RESIZABLE: Indicates that a job is resizable or...
Read more >
Use environment variables | Cloud Run Documentation
You can set environment variables for Cloud Run services or jobs. ... Subsequent revisions will also automatically get this configuration setting unless you ......
Read more >
Environment Variables | Matillion ETL Docs
Unlike Job Variables, environment variables can be used across Matillion ... give a variable the same name as any of the automatic variables...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found