Skip to content

long-running thread worker doesn't exit when app is quit #3967

Answered by davep
dbieber asked this question in Q&A
Discussion options

You must be logged in to vote

It might be worth having a glance back over the guide to workers, and the section on threaded workers and note the use of get_current_worker to get the worker and then checking if the worker is_cancelled in the busy loop.

The issue you link to is, if I recall correctly, more about not allowing long-running thread workers to stack up, because eventually you'll have too many threads running.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by davep
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
Converted from issue

This discussion was converted from issue #3966 on January 05, 2024 20:37.