Skip to content

Background task is blocking #2124

Discussion options

You must be logged in to vote

That's exactly what we would expect. From the docs:

Liftoff fairings are run concurrently; resolution of all fairings is awaited before resuming request serving.

Your fairing never terminates. If you want to run your loop in a background task, you need to task::spawn a new task.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@Leastrio
Comment options

@the10thWiz
Comment options

Answer selected by Leastrio
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants