Fix event loop #32
Reference in New Issue
Block a user
Delete Branch "fix-asyncio-loop"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Create a new event loop to handle exceptions properly and update the Dockerfile to set the correct workspace directory.
Pull Request Overview
This PR fixes event loop handling in exception scenarios and corrects the Docker workspace configuration. The changes ensure proper event loop management when the Telegram bot fails to start and align the Docker PYTHONPATH with the actual project structure.
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
asyncio.get_event_loop()with explicit new event loop creation for better exception handling/app/srcto/srcTip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
The PYTHONPATH is set to
/srcbut without an explicit WORKDIR, the container's working directory defaults to/. This means the path/srcmay not exist unless the source files are copied to the root/srcdirectory. Consider either restoringWORKDIR /appor ensuring source files are copied to/src.