Omar Sultan
03/20/2022, 9:27 AMFile "/usr/local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 341, in _raise_timeout
self, url, "Read timed out. (read timeout=%s)" % timeout_value
urllib3.exceptions.ReadTimeoutError: HTTPConnectionPool(host='prefect-apollo.prefect', port=4200): Read timed out. (read timeout=15)
This happens especially when we use the Task StartFlowRun it does not happen very often , but I was wondering if there was a way to force retry or if anyone knows why this would be happening? ThanksAnna Geller
from datetime import timedelta
from prefect import Flow
from prefect.tasks.prefect import StartFlowRun
start_flow_run = StartFlowRun(project_name="PROJECT_NAME", wait=True, max_retries=3, retry_delay=timedelta(minutes=5))
with Flow("FLOW_NAME") as flow:
staging = start_flow_run(flow_name="child_flow_name")
Omar Sultan
03/20/2022, 4:00 PMprefect.context.config.cloud.request_timeout
from any task that runs on the server it still shows 15, is there anything else I need to apply? do I need to restart the agent pod for example?Anna Geller
Omar Sultan
03/23/2022, 5:42 AMAnna Geller
Omar Sultan
03/23/2022, 9:23 AMAnna Geller
Omar Sultan
03/23/2022, 1:41 PMAnna Geller
Omar Sultan
03/23/2022, 1:47 PMAnna Geller
PREFECT_SERVER__TELEMETRY__ENABLED
is the right one. I seemed to have mistyped the underscores (only one underscore between PREFECT and SERVER), which may be the reason why this didn't work for you.
Also, once you set that, you may need to restart the Apollo pod to make sure the changes get applied.
To set it on the Helm chart, see this option, e.g.:
helm upgrade \
$NAME \
prefecthq/prefect-server \
--set apollo.options.telemetryEnabled=true