Skip to content

WorkerQueue doesn't flush on exit #2

@spenthil

Description

@spenthil

The following won't report anything when run as a script, but it will work when from REPL:

import errplane
_errplane = errplane.Errplane("errplane_api_key", "errplane_application_id")
_errplane.report("problem")

Seems like WorkerQueue doesn't get flushed before exit because it uses daemonized worker threads.

Cleanest solution in my mind is adding Errplane.flush that blocks.

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