https://prefect.io logo
Title
g

gertjan

09/09/2022, 6:30 AM
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:
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

Jeff Hale

09/09/2022, 11:20 AM
Are you trying to use different secret values? If so you could probably use different blocks.
🙌 1
g

gertjan

09/09/2022, 11:33 AM
Going to figure out how to use blocks properly for this. Thanks!
👍 1