@@ -35,6 +35,7 @@ def __init__(
35
35
proxy_status_url : str | None = None ,
36
36
purge_on_start : bool | None = None ,
37
37
token : str | None = None ,
38
+ standby_port : int | None = None ,
38
39
system_info_interval_millis : int | None = None ,
39
40
) -> None :
40
41
"""Create a `Configuration` instance.
@@ -65,6 +66,7 @@ def __init__(
65
66
purge_on_start (str, optional): Whether the actor should purge its default storages on startup, when running locally.
66
67
token (str, optional): The API token for the Apify API this actor should use.
67
68
system_info_interval_millis (str, optional): How often should the actor emit the SYSTEM_INFO event when running locally.
69
+ standby_port (int, optional): The port on which the container can listen for Actor Standby HTTP requests.
68
70
"""
69
71
# TODO: Document all these members
70
72
# https://github.com/apify/apify-sdk-python/issues/147
@@ -103,6 +105,7 @@ def __init__(
103
105
self .proxy_port = proxy_port or fetch_and_parse_env_var (ApifyEnvVars .PROXY_PORT , 8000 )
104
106
self .proxy_status_url = proxy_status_url or fetch_and_parse_env_var (ApifyEnvVars .PROXY_STATUS_URL , 'http://proxy.apify.com' )
105
107
self .purge_on_start = purge_on_start or fetch_and_parse_env_var (ApifyEnvVars .PURGE_ON_START , default = False )
108
+ self .standby_port = standby_port or fetch_and_parse_env_var (ActorEnvVars .STANDBY_PORT , 4322 )
106
109
self .started_at = fetch_and_parse_env_var (ActorEnvVars .STARTED_AT )
107
110
self .timeout_at = fetch_and_parse_env_var (ActorEnvVars .TIMEOUT_AT )
108
111
self .token = token or fetch_and_parse_env_var (ApifyEnvVars .TOKEN )
0 commit comments