I know you can change profiles via the CLI, but ca...
# data-tricks-and-tips
g
I know you can change profiles via the CLI, but can you change profiles in the python code? For example: I have one flow, 2 tasks, but I want to execute each task on a different profile. (basically different ENV vars) Also from the docs:
Copy code
prefect config set VAR2=Y VAR3=Z
Gives:
Unknown setting name 'VAR2'.
And nothing is added in the
profiles.toml
file, what am I missing?
1
j
Are you trying to use different secret values? If so you could probably use different blocks.
🙌 1
g
Going to figure out how to use blocks properly for this. Thanks!
👍 1