wiretrack
08/26/2021, 3:44 PMValueError where it can’t find Slack webhook URLwiretrack
08/26/2021, 3:45 PMKevin Kho
"PREFECT__CLOUD__USE_LOCAL_SECRETS" = "false" so it doesn’t pull the local secret?
I guess you can test the config by logging prefect.context.config and seeing if other things in the file show up?wiretrack
08/26/2021, 3:54 PMuse_local_secrets is false indeedwiretrack
08/26/2021, 3:56 PMTrue even if I have the SLACK_WEBHOOK_URL in a .toml file?Kevin Kho
.tomlwiretrack
08/26/2021, 3:57 PMprefect.context.secrets["USE_LOCAL_SECRETS"] = True ?wiretrack
08/26/2021, 3:57 PMKevin Kho
os before you import prefect to do it in codewiretrack
08/26/2021, 3:59 PMexporting bot nothing. maybe I’ll have to restart the serverwiretrack
08/26/2021, 4:02 PMos even before importing Prefect, couldn’t make it work with export in the terminal right before registering the flow, I’m probably missing something, but don’t know exactly whatKevin Kho
import os
os.environ["PREFECT__CLOUD__USE_LOCAL_SECRETS"] = False
import prefectKevin Kho
export PREFECT__CLOUD__USE_LOCAL_SECRETS=falsewiretrack
08/26/2021, 4:05 PMbool doesnt work
raise TypeError("str expected, not %s" % type(value).__name__)
TypeError: str expected, not boolwiretrack
08/26/2021, 4:05 PMwiretrack
08/26/2021, 4:06 PMwiretrack
08/26/2021, 4:06 PMlocal.tomlwiretrack
08/26/2021, 4:06 PMflow.run() but not when registeringKevin Kho
wiretrack
08/26/2021, 4:09 PMKevin Kho
wiretrack
08/26/2021, 4:11 PMKevin Kho
wiretrack
08/26/2021, 4:14 PMos approach work, even before importing prefect. But I could set the user config before starting the agent and it seems to get the correct configuration, i’ll do a few more testswiretrack
08/26/2021, 4:15 PMKevin Kho