Contextvars propagation to back ground task #1975
-
Is it possible to propapate contextvars to a back ground task? Here is my simple server code.
I get the following error when I send a GET request to http://localhost:8000/foo.
|
Beta Was this translation helpful? Give feedback.
Answered by
alex-oleshkevich
Dec 25, 2022
Replies: 1 comment
-
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Kludex
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
foo
async function.I personally try to avoid any globals if possible