aiotask-context icon indicating copy to clipboard operation
aiotask-context copied to clipboard

Contextual information for asyncio tasks

Results 9 aiotask-context issues
Sort by recently updated
recently updated
newest added

```python @wraps(f) async def decorated_function(self, request, *args, **kwargs): context.set("managers", Manager(None, None, None, None)) return await f(self, request, *args, **kwargs) ``` ![image](https://user-images.githubusercontent.com/22871555/177390135-25ed3714-42f0-4847-99a0-206373d1f2cc.png)

For now the package lacks metadata on the license and GitHub repository link to look it up. This may result in some users (esp. corporate ones) refusing to use the...

https://github.com/Skyscanner/aiotask-context/blob/master/aiotask_context/__init__.py#L89 The doc string says that if there is no event loop, the default value will be returned. The code however raises a ValueError. Logging this bug, as I think...

Is the simple task_factory used in the PoC example the best choice? It seems you'd want the request id to propagate to child tasks created within request processing. So one...

People is starting to use this package. Lets add a CHANGELOG and CONTRIBUTING files

Lets document some stuff with docstrings - factories - set/get

Make sure keeping this context doesnt avoid objects to be garbace collected

This is an external request as is. We need to check if backwards compatibility is kept

asyncio.coroutine has been removed from Python 3.11 ``` $ python3.11 -mpytest Test session starts (platform: linux, Python 3.11.0, pytest 7.1.2, pytest-sugar 0.9.6) benchmark: 3.2.2 (defaults: timer=time.perf_counter disable_gc=False min_rounds=5 min_time=0.000005 max_time=1.0...