Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Changelog

## [1.7.2](../../releases/tag/v1.7.2) - Unreleased
## [1.7.2](../../releases/tag/v1.7.2) - 2024-07-08

- ...
- Add Actor Standby port

## [1.7.1](../../releases/tag/v1.7.1) - 2024-05-23

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ requires-python = ">=3.8"
# https://github.com/apify/apify-sdk-python/pull/154
dependencies = [
"apify-client ~= 1.6.0",
"apify-shared ~= 1.1.0",
"apify-shared ~= 1.1.2",
"aiofiles >= 22.1.0",
"aioshutil >= 1.0",
"colorama >= 0.4.6",
Expand Down
3 changes: 3 additions & 0 deletions src/apify/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ def __init__(
proxy_status_url: str | None = None,
purge_on_start: bool | None = None,
token: str | None = None,
standby_port: int | None = None,
system_info_interval_millis: int | None = None,
) -> None:
"""Create a `Configuration` instance.
Expand Down Expand Up @@ -65,6 +66,7 @@ def __init__(
purge_on_start (str, optional): Whether the actor should purge its default storages on startup, when running locally.
token (str, optional): The API token for the Apify API this actor should use.
system_info_interval_millis (str, optional): How often should the actor emit the SYSTEM_INFO event when running locally.
standby_port (int, optional): The port on which the container can listen for Actor Standby HTTP requests.
"""
# TODO: Document all these members
# https://github.com/apify/apify-sdk-python/issues/147
Expand Down Expand Up @@ -103,6 +105,7 @@ def __init__(
self.proxy_port = proxy_port or fetch_and_parse_env_var(ApifyEnvVars.PROXY_PORT, 8000)
self.proxy_status_url = proxy_status_url or fetch_and_parse_env_var(ApifyEnvVars.PROXY_STATUS_URL, 'http://proxy.apify.com')
self.purge_on_start = purge_on_start or fetch_and_parse_env_var(ApifyEnvVars.PURGE_ON_START, default=False)
self.standby_port = standby_port or fetch_and_parse_env_var(ActorEnvVars.STANDBY_PORT, 4322)
self.started_at = fetch_and_parse_env_var(ActorEnvVars.STARTED_AT)
self.timeout_at = fetch_and_parse_env_var(ActorEnvVars.TIMEOUT_AT)
self.token = token or fetch_and_parse_env_var(ApifyEnvVars.TOKEN)
Expand Down