Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DeprecationWarning in PlatformEventManager #343

Open
vdusek opened this issue Nov 26, 2024 · 0 comments
Open

DeprecationWarning in PlatformEventManager #343

vdusek opened this issue Nov 26, 2024 · 0 comments
Labels
t-tooling Issues with this label are in the ownership of the tooling team.

Comments

@vdusek
Copy link
Contributor

vdusek commented Nov 26, 2024

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.

@vdusek vdusek added the t-tooling Issues with this label are in the ownership of the tooling team. label Nov 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
t-tooling Issues with this label are in the ownership of the tooling team.
Projects
None yet
Development

No branches or pull requests

1 participant