https://prefect.io logo
m

Mitch

07/11/2023, 6:57 PM
Hey team, I am trying to stop the local runs from logging in the prefect cloud UI as it makes monitoring our real jobs more difficult. The following in not stopping the logs from being written, even though printing
PREFECT_LOGGING_TO_API_ENABLED.value()
is showing that the value is false. Any thoughts?
Copy code
with temporary_settings(updates={PREFECT_LOGGING_TO_API_ENABLED: False}):
     run()
d

Dominic Tarro

07/11/2023, 7:00 PM
Check the
prefect_testing_harness
in
prefect.testing.utilities
. https://docs.prefect.io/latest/guides/testing/
m

Mitch

07/11/2023, 8:23 PM
That did not work either. This does not make any sense to me!
n

Nate

07/11/2023, 8:30 PM
do you want to avoid having the flow runs show up in the UI at all? or just avoid logging
m

Mitch

07/11/2023, 9:02 PM
Both probably - I just want to run it locally like I was able to do in prefect 1. Mostly for new processes where I am running the flow many times
n

Nate

07/11/2023, 9:32 PM
does the flow need to access to resources defined your in workspace (like Blocks) or anything in order to run? if not, you could just make a new empty profile and run it in ephemeral mode
Copy code
prefect profile create local
prefect profile use local