neptune-query environment variables
Environment variables related to neptune-query Python package.
NEPTUNE_HTTP_REQUEST_TIMEOUT_SECONDS
Controls HTTPX timeouts. The timeout is in seconds and applies to individual networking operations, such as connect, read, and write.
The default duration is 60
.
- Linux
- macOS
- Windows
Append a line with the export command to your .profile
or other shell initialization file:
export NEPTUNE_HTTP_REQUEST_TIMEOUT_SECONDS=120
Append a line with the export command to your .profile
or other shell initialization file:
export NEPTUNE_HTTP_REQUEST_TIMEOUT_SECONDS=120
In a terminal app, such as PowerShell or Command Prompt, enter the setx
command and press enter:
setx NEPTUNE_HTTP_REQUEST_TIMEOUT_SECONDS 120
To activate the change, restart the terminal app.
You can also navigate to Settings → Edit the system environment variables and add the variable there.
NEPTUNE_QUERY_MAX_WORKERS
Controls the number of workers in the thread pool.
The default number is 10
.
- Linux
- macOS
- Windows
Append a line with the export command to your .profile
or other shell initialization file:
export NEPTUNE_QUERY_MAX_WORKERS=20
Append a line with the export command to your .profile
or other shell initialization file:
export NEPTUNE_QUERY_MAX_WORKERS=20
In a terminal app, such as PowerShell or Command Prompt, enter the setx
command and press enter:
setx NEPTUNE_QUERY_MAX_WORKERS 20
To activate the change, restart the terminal app.
You can also navigate to Settings → Edit the system environment variables and add the variable there.
NEPTUNE_QUERY_RETRY_SOFT_TIMEOUT
Controls the soft timeout for retrying failed server requests. The soft limit doesn't include wait time due to Retry-After responses.
The soft limit plus Retry-After wait time together can't exceed the limit specified in the NEPTUNE_QUERY_RETRY_HARD_TIMEOUT
environment variable.
The default duration is 1800
seconds.
- Linux
- macOS
- Windows
Append a line with the export command to your .profile
or other shell initialization file:
export NEPTUNE_QUERY_RETRY_SOFT_TIMEOUT=3600
Append a line with the export command to your .profile
or other shell initialization file:
export NEPTUNE_QUERY_RETRY_SOFT_TIMEOUT=3600
In a terminal app, such as PowerShell or Command Prompt, enter the setx
command and press enter:
setx NEPTUNE_QUERY_RETRY_SOFT_TIMEOUT 3600
To activate the change, restart the terminal app.
You can also navigate to Settings → Edit the system environment variables and add the variable there.
NEPTUNE_QUERY_RETRY_HARD_TIMEOUT
Controls the hard timeout for retrying failed server requests. The hard limit is the maximum time allowed for a single HTTP request until an exception is raised.
The soft limit specified in the NEPTUNE_QUERY_RETRY_SOFT_TIMEOUT
environment variable plus wait time due to Retry-After responses together can't exceed the hard limit.
The default duration is 3600
seconds.
- Linux
- macOS
- Windows
Append a line with the export command to your .profile
or other shell initialization file:
export NEPTUNE_QUERY_RETRY_HARD_TIMEOUT=7200
Append a line with the export command to your .profile
or other shell initialization file:
export NEPTUNE_QUERY_RETRY_HARD_TIMEOUT=7200
In a terminal app, such as PowerShell or Command Prompt, enter the setx
command and press enter:
setx NEPTUNE_QUERY_RETRY_HARD_TIMEOUT 7200
To activate the change, restart the terminal app.
You can also navigate to Settings → Edit the system environment variables and add the variable there.