@@ -35,6 +35,7 @@ def __init__(
3535 proxy_status_url : str | None = None ,
3636 purge_on_start : bool | None = None ,
3737 token : str | None = None ,
38+ standby_port : int | None = None ,
3839 system_info_interval_millis : int | None = None ,
3940 ) -> None :
4041 """Create a `Configuration` instance.
@@ -65,6 +66,7 @@ def __init__(
6566 purge_on_start (str, optional): Whether the actor should purge its default storages on startup, when running locally.
6667 token (str, optional): The API token for the Apify API this actor should use.
6768 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.
6870 """
6971 # TODO: Document all these members
7072 # https://github.com/apify/apify-sdk-python/issues/147
@@ -103,6 +105,7 @@ def __init__(
103105 self .proxy_port = proxy_port or fetch_and_parse_env_var (ApifyEnvVars .PROXY_PORT , 8000 )
104106 self .proxy_status_url = proxy_status_url or fetch_and_parse_env_var (ApifyEnvVars .PROXY_STATUS_URL , 'http://proxy.apify.com' )
105107 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 )
106109 self .started_at = fetch_and_parse_env_var (ActorEnvVars .STARTED_AT )
107110 self .timeout_at = fetch_and_parse_env_var (ActorEnvVars .TIMEOUT_AT )
108111 self .token = token or fetch_and_parse_env_var (ApifyEnvVars .TOKEN )
0 commit comments