Comments (5)
Just as an idea: if you're using pytest as the test executor, pytest timeout may provide a simple way to break in case something hangs for a period of time. Moreover, travis or whatever also have configurable timeouts for steps. That doesn't give the nicest results for test reporting, but is ok to detect that something bad has happened.
from unsync.
I agree, unfortunately the time investment on this at the moment I think would not pay out. One giant issue standing in the way is that a fair number of the unit tests I've written will fail by dead locking and I haven't set timeouts on anything.
I think this is great for blue sky, especially if more people begin contributing, but for the moment I'll just leave this open as a "nice to have".
from unsync.
I had run test suite for ~500 times in a shell script on my machine. It seems to be stable, no errors happened. What tests do you suspect to be dead locking?
from unsync.
I don't mean that the tests fail in a non-deterministic way, but when they do fail rather than the test getting marked as a failure, the test will just not complete. For instance, if you comment out the two lines below https://github.com/alex-sherman/unsync/blob/master/unsync/unsync.py#L105 the test that verifies that will, rather than reporting a failure, never complete.
from unsync.
Completed in #26 thanks again @Luttik!
from unsync.
Related Issues (20)
- Async generators HOT 2
- Defining the amount of threads in use for sync functions HOT 3
- How to handle errors and exceptions? HOT 1
- Can't Import unsync on AWS Lambda HOT 5
- Cython support
- @unsync(cpu_bound=True) Windows 10 64 error HOT 1
- Any support or alternative for `asyncio.Semaphore`? HOT 4
- Calling nested results() on futures produces InvalidStateError HOT 1
- Unsync conda-forge recipe
- Python 3.9.x compatability? HOT 6
- Decorator problem HOT 1
- process_executor.py example on Windows 7 orphans the multiprocess kernels HOT 1
- Ability to limit concurrency? HOT 4
- Leftover debug? DERP HOT 2
- Continuation with cpu_bound functions HOT 2
- CPU Bound Decorator in Wrapped Functions HOT 1
- Using @unsync decorator in Jupyter results in error HOT 1
- max_workers HOT 3
- closing old processes HOT 3
- `BrokenProcessPool` error using function with `cpu_bound=True` HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from unsync.