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
8 changes: 7 additions & 1 deletion docs/04_upgrading/upgrading_to_v4.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ await Actor.charge('my-event', count=5)

## Removal of deprecated APIs

Methods and arguments that had been deprecated in v3 are removed in v4.
Methods and arguments that had been deprecated in v3 are removed in v4, along with a few `Configuration` fields that the SDK never read.

### api_public_base_url argument of storage clients

Expand Down Expand Up @@ -71,6 +71,12 @@ The deprecated `latest_sdk_version`, `log_format`, and `standby_port` fields hav
- In place of `standby_port`, use `web_server_port`.
- `latest_sdk_version` and `log_format` don't have replacement. SDK version checking isn't supported for the Python SDK and the log format should be adjusted in code instead.

### Unused `Configuration` fields

The `disable_outdated_warning` and `fact` fields have been removed from `Configuration`. The SDK never read either of them, and `Actor.get_env()` no longer includes their keys. The corresponding `ApifyEnvVars.DISABLE_OUTDATED_WARNING` and `ApifyEnvVars.FACT` enum entries remain available.

Neither has a replacement. SDK version checking isn't supported for the Python SDK, so there's no outdated-version warning to disable.

### wait_for_finish argument of Actor.start

The `wait_for_finish` argument of `Actor.start()` has been removed. It contradicted the purpose of `Actor.start()`, which only starts the run without waiting for it to finish. The JS SDK does not expose it on `Actor.start()` either. To wait for a run to finish, use `Actor.call()`.
Expand Down
11 changes: 0 additions & 11 deletions src/apify/_configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -264,17 +264,6 @@ class Configuration(CrawleeConfiguration):
),
] = None

disable_outdated_warning: Annotated[
bool,
Field(
validation_alias='apify_disable_outdated_warning',
description='Controls the display of outdated SDK version warnings',
),
BeforeValidator(lambda val: val or False),
] = False

fact: Annotated[str | None, Field(validation_alias='apify_fact')] = None

input_key: Annotated[
str,
Field(
Expand Down
2 changes: 0 additions & 2 deletions tests/unit/actor/test_actor_env_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@

BOOL_ENV_VARS: list[ApifyEnvVars] = [
ApifyEnvVars.DISABLE_BROWSER_SANDBOX,
ApifyEnvVars.DISABLE_OUTDATED_WARNING,
ApifyEnvVars.HEADLESS,
ApifyEnvVars.IS_AT_HOME,
ApifyEnvVars.PERSIST_STORAGE,
Expand Down Expand Up @@ -62,7 +61,6 @@
ApifyEnvVars.API_BASE_URL,
ApifyEnvVars.API_PUBLIC_BASE_URL,
ApifyEnvVars.DEFAULT_BROWSER_PATH,
ApifyEnvVars.FACT,
ApifyEnvVars.INPUT_SECRETS_PRIVATE_KEY_FILE,
ApifyEnvVars.INPUT_SECRETS_PRIVATE_KEY_PASSPHRASE,
ApifyEnvVars.LOCAL_STORAGE_DIR,
Expand Down
Loading