diff --git a/sources/platform/actors/development/programming_interface/actor_standby.md b/sources/platform/actors/development/programming_interface/actor_standby.md index 0b6d3cd0a..f8cdddb7f 100644 --- a/sources/platform/actors/development/programming_interface/actor_standby.md +++ b/sources/platform/actors/development/programming_interface/actor_standby.md @@ -62,7 +62,7 @@ class GetHandler(SimpleHTTPRequestHandler): async def main() -> None: async with Actor: - with HTTPServer(('', Actor.config.web_server_port), GetHandler) as http_server: + with HTTPServer(('', Actor.configuration.web_server_port), GetHandler) as http_server: http_server.serve_forever() ``` @@ -131,7 +131,7 @@ class GetHandler(SimpleHTTPRequestHandler): async def main() -> None: async with Actor: - with HTTPServer(('', Actor.config.standby_port), GetHandler) as http_server: + with HTTPServer(('', Actor.configuration.standby_port), GetHandler) as http_server: http_server.serve_forever() ``` @@ -167,7 +167,7 @@ from apify import Actor async def main() -> None: async with Actor: - if Actor.config.meta_origin == 'STANDBY': + if Actor.configuration.meta_origin == 'STANDBY': # Start your Standby server here else: # Perform the standard Actor operations here diff --git a/sources/platform/actors/development/programming_interface/environment_variables.md b/sources/platform/actors/development/programming_interface/environment_variables.md index 7830d19eb..d0b4538b8 100644 --- a/sources/platform/actors/development/programming_interface/environment_variables.md +++ b/sources/platform/actors/development/programming_interface/environment_variables.md @@ -197,13 +197,13 @@ from apify import Actor async def main(): async with Actor: - old_token = Actor.config.token + old_token = Actor.configuration.token Actor.log.info(f'old_token = {old_token}') # use different token - Actor.config.token = 's0m3n3wt0k3n' + Actor.configuration.token = 's0m3n3wt0k3n' - new_token = Actor.config.token + new_token = Actor.configuration.token Actor.log.info(f'new_token = {new_token}') ```