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
9 changes: 9 additions & 0 deletions src/apify/_configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,15 @@ class Configuration(CrawleeConfiguration):
),
] = None

user_is_paying: Annotated[
bool,
Field(
alias='apify_user_is_paying',
description='True if the user calling the Actor is paying user',
),
BeforeValidator(lambda val: False if val == '' else val),
] = False

web_server_port: Annotated[
int,
Field(
Expand Down
1 change: 0 additions & 1 deletion tests/unit/actor/test_actor_env_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ async def test_get_env_with_randomized_env_vars(monkeypatch: pytest.MonkeyPatch)
ApifyEnvVars.SDK_LATEST_VERSION,
ApifyEnvVars.LOG_FORMAT,
ApifyEnvVars.LOG_LEVEL,
ApifyEnvVars.USER_IS_PAYING,
ActorEnvVars.STANDBY_PORT,
}

Expand Down
2 changes: 1 addition & 1 deletion uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.