Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 6d0d87d

Browse filesBrowse files
authored
feat: add actor standby port (#220)
This PR adds Actor Standby port to the configuration.
1 parent 162ce10 commit 6d0d87d
Copy full SHA for 6d0d87d

File tree

Expand file treeCollapse file tree

3 files changed

+6
-3
lines changed
Filter options
Expand file treeCollapse file tree

3 files changed

+6
-3
lines changed

‎CHANGELOG.md

Copy file name to clipboardExpand all lines: CHANGELOG.md
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# Changelog
22

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

5-
- ...
5+
- Add Actor Standby port
66

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

‎pyproject.toml

Copy file name to clipboardExpand all lines: pyproject.toml
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ requires-python = ">=3.8"
2727
# https://github.com/apify/apify-sdk-python/pull/154
2828
dependencies = [
2929
"apify-client ~= 1.6.0",
30-
"apify-shared ~= 1.1.0",
30+
"apify-shared ~= 1.1.2",
3131
"aiofiles >= 22.1.0",
3232
"aioshutil >= 1.0",
3333
"colorama >= 0.4.6",

‎src/apify/config.py

Copy file name to clipboardExpand all lines: src/apify/config.py
+3Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.