Skip to content

Async Spawn calls need timeouts #58

@MikeBishop

Description

@MikeBishop

The Tesla API's current most common way to break is by hanging forever, and the Python scripts currently let it. This is particularly pernicious for refresh, which can run during module startup and prevent other parts of initialization from ever running. This fix might take a couple possible forms:

  • Use Promise.race(...) to create a timeout on the async-spawn calls, so that we can abandon the Python invocations if they take too long.
  • Add timeouts to the HTTP calls within the Python scripts such that they are guaranteed to complete in a finite and reasonable amount of time.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions