By default, when i run a deployment from the UI (orion server) and start an agent, the command line “python -m prefect.engine” is executed in a directory at “/tmp/tmp*prefect”. However, I am working on a server where the “/tmp” directory is very limited in both space and access time. Can I change the current directory of the execution to another one on my computer (like /home/tmp*prefect) ?
I use the infrastructure Process to run my flow.
Year Really!
It is very important problem, for me too, I create Flows for processing big files (~20-30GB) and prefect use tmp dir for store it (I noticed it when Flows was running), prefect cleans after flow executed it is good but I’d like to set the dir for temp files cause boot memory is 50GB only and the boot memory is expensive to use and the better way is to use extra-disk or may be store every data at .prefect/ (which location we already can control)
Now I see just mount extra space to tmp dir
That’s a neat idea and definitely viable. Check also prefect settings, there’s a settings variable you can use to adjust which directory is used for that by Prefect