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

Add support for float timeouts using alarms #8737

Merged
merged 1 commit into from
Mar 7, 2023
Merged

Add support for float timeouts using alarms #8737

merged 1 commit into from
Mar 7, 2023

Conversation

zanieb
Copy link
Contributor

@zanieb zanieb commented Mar 7, 2023

After much annoyance adjusting tests that used subsecond timeouts, I figured out how to make float values work with alarm based timeouts.

See https://docs.python.org/3/library/signal.html#signal.ITIMER_REAL and https://docs.python.org/3/library/signal.html#signal.setitimer

@zanieb zanieb requested a review from a team as a code owner March 7, 2023 22:01
@netlify
Copy link

netlify bot commented Mar 7, 2023

Deploy Preview for prefect-docs ready!

Name Link
🔨 Latest commit f03b8a9
🔍 Latest deploy log https://app.netlify.com/sites/prefect-docs/deploys/6407b42705c448000896c271
😎 Deploy Preview https://deploy-preview-8737--prefect-docs.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 settings.

Copy link
Collaborator

@chrisguidry chrisguidry left a comment

Choose a reason for hiding this comment

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

Neat find!

@zanieb zanieb merged commit 9cee961 into main Mar 7, 2023
@zanieb zanieb deleted the float-timeouts branch March 7, 2023 22:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants