Get Current Options
At any point in your code, you can get the current options using the
px.get_current_options()
function.
px.get_current_options()
This returns a px.types.RunOptions()
object.
Getting current options is useful when you want to ensure that the options are
set correctly. Most options are set when px.connect()
is called or through
default values.
from dataclasses import asdict
from pprint import pprint
options = px.get_current_options()
pprint(asdict(options))
{'allow_multiprocessing': False,
'cache_options': {'cache_path': '/proxai_cache/',
'clear_model_cache_on_connect': False,
'clear_query_cache_on_connect': False,
'retry_if_error_cached': True,
'unique_response_limit': 3},
'logging_options': {'hide_sensitive_content': True,
'logging_path': '/proxai_logs/test_experiment/run_1',
'stdout': True},
'proxdash_options': {'disable_proxdash': False,
'hide_sensitive_content': True,
'stdout': True},
'run_type': 'PRODUCTION',
'strict_feature_test': True}