Open LarsParTec opened 3 weeks ago
Have this issue too. I have multiple prefect instances in one machine and would prefer having one .toml AND one prefect.db per virtual env (prefect instance), so that my flow runs per instance are not mixed up in one prefect.db, and I dont need to switch between .toml profiles everytime I switch prefect instances.
@cleung1996 Good point. That is a further argument for nested Prefect configs.
Describe the current behavior
Currently, the Prefect configuration is stored in the user directory
~/.prefect/profiles.toml
.Describe the proposed behavior
Configurations in a project directory
~/myproject/.prefect/profiles.toml
should automatically (!) override configs in~/.prefect/profiles.toml
when running a project flow~/myproject/myflow.py
. NoPREFECT_HOME
is required to be set.Example Use
Additional context
~/myproject/.prefect/profiles.toml
can be stored in a global project git repo, while personalisation remains possible in~/.prefect/profiles.toml
.