Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

DeprecationWarning in PlatformEventManager #343

Copy link
Copy link
Open
@vdusek

Description

@vdusek
Issue body actions

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.

honzajavorek

Metadata

Metadata

Assignees

No one assigned

    Labels

    t-toolingIssues with this label are in the ownership of the tooling team.Issues 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

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.