Is there a way to change the location of the tempo...
# ask-community
j
Is there a way to change the location of the temporary working directory that is used by prefect v2?
j
Can you find out which setting (if any) controls the location of the temporary working directory? It appears that neither
PREFECT_HOME
nor
PREFECT_LOCAL_STORAGE_PATH
is the correct one.
c
the default behavior is based on your system env settings, you can run
env | grep -i tmp
to see what your system setting is, and change it there
but that’s python and OS specific, not a prefect setting
j
It appears one change the location of the ephemeral temp directory where a flow run is executed by setting the
TMPDIR
environment variable before starting the prefect agent. Perhaps we should document this somewhere.