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

feat: Raise exception in tests when blocking code is called in event loop #4293

Merged
merged 1 commit into from
Nov 2, 2024

Conversation

cbornet
Copy link
Collaborator

@cbornet cbornet commented Oct 26, 2024

Raise exception in tests when blocking code is called in event loop

@dosubot dosubot bot added size:M This PR changes 30-99 lines, ignoring generated files. enhancement New feature or request labels Oct 26, 2024
@cbornet cbornet marked this pull request as draft October 26, 2024 22:52
@@ -93,15 +94,16 @@ async def _queue_event(self, payload) -> None:
async def log_package_version(self) -> None:
python_version = ".".join(platform.python_version().split(".")[:2])
version_info = get_version_info()
architecture = platform.architecture()[0]
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Detected by the block buster 😀

@cbornet cbornet force-pushed the detect-blocking branch 4 times, most recently from 6773382 to 3145ff7 Compare November 2, 2024 10:34
@cbornet cbornet marked this pull request as ready for review November 2, 2024 10:38
@dosubot dosubot bot added size:L This PR changes 100-499 lines, ignoring generated files. and removed size:M This PR changes 30-99 lines, ignoring generated files. labels Nov 2, 2024
@github-actions github-actions bot added enhancement New feature or request and removed enhancement New feature or request labels Nov 2, 2024
Copy link
Contributor

@ogabrielluiz ogabrielluiz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is awesome.

LGTM

@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Nov 2, 2024
@cbornet cbornet force-pushed the detect-blocking branch 4 times, most recently from c6ca95b to 1ce2a6b Compare November 2, 2024 15:12
@cbornet cbornet enabled auto-merge (squash) November 2, 2024 15:22
@cbornet cbornet disabled auto-merge November 2, 2024 15:25
@cbornet cbornet merged commit 14b3117 into langflow-ai:main Nov 2, 2024
28 of 29 checks passed
@cbornet cbornet deleted the detect-blocking branch November 2, 2024 16:03
ogabrielluiz pushed a commit that referenced this pull request Nov 4, 2024
…loop (#4293)

Raise exception in tests when blocking code is called in event loop
diogocabral pushed a commit to headlinevc/langflow that referenced this pull request Nov 26, 2024
…loop (langflow-ai#4293)

Raise exception in tests when blocking code is called in event loop
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request lgtm This PR has been approved by a maintainer size:L This PR changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants