Skip to content

Changing the api_key is not safe on a threaded server #17

@azundo

Description

@azundo

The api_key is set as a module global and then subsequently imported internally in the AbstractAPI class. Changing the api_key on one thread can impact the value of api_key on another thread in between changing it and invoking the api. Because of this it's not possible to safely support making requests to the beyonic api on behalf of multiple users from a threaded python server. Ideally there would be a way to create an instance of the api client that does not share state with other threads.

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