Taylor Curran
04/03/2023, 2:25 PMMarvin
04/03/2023, 2:26 PMPREFECT_API_DATABASE_TIMEOUT
replaces the deprecated setting PREFECT_ORION_DATABASE_TIMEOUT
and allows you to set a timeout for database connection. Additionally, the setting PREFECT_API_DATABASE_CONNECTION_TIMEOUT
replaces the deprecated setting PREFECT_ORION_DATABASE_CONNECTION_TIMEOUT
and sets the connection timeout for database connections.
The Prefect API reference "prefect.client.orchestration" has an httpx_settings
method that can set a timeout with a timeout
keyword argument. This argument requires a connect
, read
, and write
value to be set, all of which are set to the value of the parameter PREFECT_API_REQUEST_TIMEOUT
. The pool
parameter can also be set, with a default value of 25.
This information was found in the Prefect API reference "prefect.client.orchestration" and in the Prefect API reference "prefect.settings". I hope this helps you understand the timeout feature and answer your question.