diff --git a/src/apify/_configuration.py b/src/apify/_configuration.py index 91d6954d..d044f345 100644 --- a/src/apify/_configuration.py +++ b/src/apify/_configuration.py @@ -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( diff --git a/tests/unit/actor/test_actor_env_helpers.py b/tests/unit/actor/test_actor_env_helpers.py index db39ab3f..e9eacdb2 100644 --- a/tests/unit/actor/test_actor_env_helpers.py +++ b/tests/unit/actor/test_actor_env_helpers.py @@ -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, } diff --git a/uv.lock b/uv.lock index e86a0f36..0e6c8ff1 100644 --- a/uv.lock +++ b/uv.lock @@ -1,5 +1,5 @@ version = 1 -revision = 3 +revision = 2 requires-python = ">=3.10" [[package]]