Skip to content

Contextvars propagation to back ground task #1975

Answered by alex-oleshkevich
yyamano asked this question in Q&A
Discussion options

You must be logged in to vote
  1. Try to make foo async function.
  2. In this example, you'd better to pass request id directly to the task without using globals.
    I personally try to avoid any globals if possible

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Kludex
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants