Mitch
11/16/2023, 7:56 PMif __name__ == '__main__':
import os
os.environ["PREFECT_LOGGING_ORION_ENABLED"] = "False"
# with temporary_settings(set_defaults={PREFECT_LOGGING_TO_API_ENABLED : False}):
with use_profile('prod'):
run_my_flow(x)
Mitch
11/16/2023, 7:59 PM2.10.20
Chris White
Mitch
11/16/2023, 8:14 PMChris White
prefect server start
(so it's not talking to Cloud at all), so I'll do:
prefect profile use local
## python run-my-flow.py or whatever
if you are heavily relying on cloud features within the flow itself, this is where a separate workspace comes in handy (i.e. a "Sandbox" workspace where anything goes), and then prefect profile use sandbox
to switch APIsMitch
11/16/2023, 8:20 PMChris White