Skip to content

Add version of YAMLConfigManager that allows to run in a non-main thread #63

@zz1874

Description

@zz1874

This is co-authored by @simeoncarstens

We are implementing an HTTP API for looper (see pepkit/looper#441), and since the HTTP API should be non-blocking, we need to run looper in a separate thread. The only thing preventing us from that is the YAMLConfigManager class that uses signal to capture Ctrl-c inputs, which only works in the main thread.

Could we add a version of YAMLConfigManager for non-interactive use that doesn't use signal?
The commits we've made to run looper in a separate thread are pepkit/looper@bd73e0a and pepkit/looper@6483045, this environment variable solution might not be appropriate, and we may think of some other solutions.

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