Weiliang Li
Weiliang Li
OK, after deleting the vm and starting with containerd context it works
``` Traceback (most recent call last): File "/opt/hostedtoolcache/Python/3.9.12/x64/bin/black", line 8, in sys.exit(patched_main()) File "/opt/hostedtoolcache/Python/3.9.[12](https://github.com/samuelcolvin/arq/runs/6383617536?check_suite_focus=true#step:6:12)/x64/lib/python3.9/site-packages/black/__init__.py", line [13](https://github.com/samuelcolvin/arq/runs/6383617536?check_suite_focus=true#step:6:13)72, in patched_main patch_click() File "/opt/hostedtoolcache/Python/3.9.12/x64/lib/python3.9/site-packages/black/__init__.py", line 1358, in patch_click from click import _unicodefun ImportError:...
You can add a custom js file, say file name is `autoselect.js`, like: ```javascript (function ($) { console.debug($, 'LOADED'); $(function () { $('select[auto-select=1]').select2(); }); }(django.jQuery)); ``` Then, define a custom...
> @kigawas How do you envision integrating your solution to Django admin `list_filter` that this project is about? > > That is, what would you write instead of `???` in...
In effect I found this connexion's sanic PR pretty useful, though connexion is not actively maintained 😄 https://github.com/zalando/connexion/pull/1250
Okay, this can be resolved by adding these lines: ```py t = anyio.get_current_task() if t.name == "anyio.from_thread.BlockingPortal._call_func": # cancel stuck task due to discarded response # see: https://github.com/encode/starlette/issues/1022 task_group.cancel_scope.cancel() ```
@Kludex Can you review this approach?
After tracing the tasks under CancelScope, I finally found that task. Probably due to silenced anyio's WouldBlock exception. I'll provide more details tomorrow
## Conclusion To sum up, to solve the problem of #1022, the `anyio` integration in #1157 introduced `task_group.cancel_scope.cancel()` to cancel stuck tasks. However, if there are still other background tasks,...
Okay, just to shield the background tasks: ```diff diff --git a/starlette/background.py b/starlette/background.py index 4aaf7ae..db9b38a 100644 --- a/starlette/background.py +++ b/starlette/background.py @@ -1,6 +1,8 @@ import sys import typing +import anyio +...