Skip to content

Commit b3f5d0d

Browse files
committed
docs: update Python Actor config references to Actor.configuration
1 parent 8570823 commit b3f5d0d

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

sources/platform/actors/development/programming_interface/actor_standby.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ class GetHandler(SimpleHTTPRequestHandler):
6262

6363
async def main() -> None:
6464
async with Actor:
65-
with HTTPServer(('', Actor.config.web_server_port), GetHandler) as http_server:
65+
with HTTPServer(('', Actor.configuration.web_server_port), GetHandler) as http_server:
6666
http_server.serve_forever()
6767
```
6868

@@ -131,7 +131,7 @@ class GetHandler(SimpleHTTPRequestHandler):
131131

132132
async def main() -> None:
133133
async with Actor:
134-
with HTTPServer(('', Actor.config.standby_port), GetHandler) as http_server:
134+
with HTTPServer(('', Actor.configuration.standby_port), GetHandler) as http_server:
135135
http_server.serve_forever()
136136
```
137137

@@ -167,7 +167,7 @@ from apify import Actor
167167

168168
async def main() -> None:
169169
async with Actor:
170-
if Actor.config.meta_origin == 'STANDBY':
170+
if Actor.configuration.meta_origin == 'STANDBY':
171171
# Start your Standby server here
172172
else:
173173
# Perform the standard Actor operations here

sources/platform/actors/development/programming_interface/environment_variables.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -197,13 +197,13 @@ from apify import Actor
197197

198198
async def main():
199199
async with Actor:
200-
old_token = Actor.config.token
200+
old_token = Actor.configuration.token
201201
Actor.log.info(f'old_token = {old_token}')
202202

203203
# use different token
204-
Actor.config.token = 's0m3n3wt0k3n'
204+
Actor.configuration.token = 's0m3n3wt0k3n'
205205

206-
new_token = Actor.config.token
206+
new_token = Actor.configuration.token
207207
Actor.log.info(f'new_token = {new_token}')
208208
```
209209

0 commit comments

Comments
 (0)