Skip to content

Python process hangs without joining following run_in_thread #576

@jkaye2012

Description

@jkaye2012

Currently, if one uses PubSub.run_in_thread and neglects to stop the thread before the program exits, the Python process will hang on the processing thread. In my testing, this issue is resolved easily by making the worker thread a daemon before starting it; in this way, the processing thread is terminated when its parent dies.

Are there any issues with daemonizing the worker thread in this way?

Commit: 48ae31a

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions