Skip to content
Open
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
Original file line number Diff line number Diff line change
Expand Up @@ -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()
```

Expand Down Expand Up @@ -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()
```

Expand Down Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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}')
```

Expand Down
Loading