Skip to content

DeprecationWarning in PlatformEventManagerΒ #343

@vdusek

Description

@vdusek

We should probably not do this:

class PlatformEventManager(EventManager):
    _connected_to_platform_websocket: asyncio.Future = asyncio.Future()

Warning:

apify/_platform_event_manager.py:138
  /home/vdusek/Projects/crawlee-python/.venv/lib/python3.13/site-packages/apify/_platform_event_manager.py:138: DeprecationWarning: There is no current event loop
    _connected_to_platform_websocket: asyncio.Future = asyncio.Future()

The _connected_to_platform_websocket should be initialized to None, and the Future instance can be created lazily.

Metadata

Metadata

Assignees

Labels

t-toolingIssues with this label are in the ownership of the tooling team.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions