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

Issue with default mii_cache location #95

Closed
xiang-deng opened this issue Nov 7, 2022 · 2 comments
Closed

Issue with default mii_cache location #95

xiang-deng opened this issue Nov 7, 2022 · 2 comments

Comments

@xiang-deng
Copy link

The default mii_cache location is hardcoded as /tmp/cache, and we run into issues in a cluster environment when multi-users are trying to submit jobs and write on that directory. Maybe it is better to make the default cache location respect the environment variable set in the system.

MII_CACHE_PATH_DEFAULT = "/tmp/mii_cache"

@mrwyattii
Copy link
Contributor

Hi @xiang-deng you can modify the cache path by setting the MII_CACHE_PATH environment variable. This will take precedence over the default path:

cache_path = os.environ.get(MII_CACHE_PATH, MII_CACHE_PATH_DEFAULT)

Does this address the issue you are seeing?

@xiang-deng
Copy link
Author

xiang-deng commented Nov 7, 2022

Oh yeah, thanks! That resolves the issue. It was a little bit hard to locate where the path was specified in the beginning as we thought it was inherited somewhere.

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