https://prefect.io logo
Title
j

jack

01/11/2023, 5:41 PM
Is there a way to change the location of the temporary working directory that is used by prefect v2?
j

jack

01/11/2023, 6:34 PM
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

Christopher Boyd

01/11/2023, 6:54 PM
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

jack

02/28/2023, 8:06 PM
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.