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

Check if we're on the main thread when using mock sigterm handler in tests #11552

Merged
merged 1 commit into from
Jan 4, 2024

Conversation

serinamarie
Copy link
Contributor

@serinamarie serinamarie commented Jan 4, 2024

Follow up to #11548

Should close #10895

We missed a spot where we're using the mock_sigterm_handler fixture in our tests and we sometimes face intermittent failures resulting in the ValueError: signal only works in main thread of the main interpreter we've been seeing lately.

Checklist

  • This pull request references any related issue by including "closes <link to issue>"
    • If no issue exists and your change is not a small fix, please create an issue first.
  • This pull request includes tests or only affects documentation.
  • This pull request includes a label categorizing the change e.g. maintenance, fix, feature, enhancement, docs.

For documentation changes:

  • This pull request includes redirect settings in netlify.toml for files that are removed or renamed

@serinamarie serinamarie added the development Tech debt, refactors, CI, tests, and other related work. label Jan 4, 2024
Copy link

netlify bot commented Jan 4, 2024

Deploy Preview for prefect-docs-preview ready!

Name Link
🔨 Latest commit e302982
🔍 Latest deploy log https://app.netlify.com/sites/prefect-docs-preview/deploys/6596db93f38af800080d0186
😎 Deploy Preview https://deploy-preview-11552--prefect-docs-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@serinamarie serinamarie marked this pull request as ready for review January 4, 2024 16:27
@serinamarie serinamarie requested a review from a team as a code owner January 4, 2024 16:27
@serinamarie serinamarie merged commit e235cb1 into main Jan 4, 2024
57 checks passed
@serinamarie serinamarie deleted the update-mock-sigterm-handler branch January 4, 2024 17:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
development Tech debt, refactors, CI, tests, and other related work.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Tests using invoke_and_assert can sometimes attempt to forward signals from a thread that's not main
3 participants