Skip to content

Conversation

@nix-apollo
Copy link
Contributor

@nix-apollo nix-apollo commented Apr 23, 2024

Description

Now uses a tempfile directory (/tmp/random_hash/) instead of writing to /tmp/ directly. This tmpdir is then immediately cleaned up by the context manager.

Motivation and Context

This is because I was getting permission issues writing to the tmpfile directory on the cluster.

A big disadvantage is that this no longer caches the files anywhere. Probably it would be best to support a more permanant cache in some form (in which case this PR can be superseeded).

How Has This Been Tested?

I have successfully used the code.

Does this PR introduce a breaking change?

breaks the current caching behavior

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

Successfully merging this pull request may close these issues.

2 participants