Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove the lock on apply_action #93

Merged
merged 9 commits into from
Jul 2, 2020
Merged

Remove the lock on apply_action #93

merged 9 commits into from
Jul 2, 2020

Commits on Jun 29, 2020

  1. [Refactor] Add helper functions select_command and select_state.

    Add two functions to select first existing command or state from a list.
    Implement in cover.py
    vlebourl committed Jun 29, 2020
    Configuration menu
    Copy the full SHA
    45a3024 View commit details
    Browse the repository at this point in the history
  2. [WIP] Use async apply action to prevent sequential execution.

    Related Github issues: #91
    vlebourl committed Jun 29, 2020
    Configuration menu
    Copy the full SHA
    69ffcf3 View commit details
    Browse the repository at this point in the history
  3. [WIP] Use async apply action to prevent sequential execution.

    Related Github issues: #92
    vlebourl committed Jun 29, 2020
    Configuration menu
    Copy the full SHA
    e714f40 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    31d11f8 View commit details
    Browse the repository at this point in the history
  5. [WIP] Use a queue and update when the queue is empty

    As an async apply_action doesn't prevent the lock, I propose to add
    an execution queue to tahoma_device entities, and only perform the update
    once the queue is empty.
    Having `update` instead of `schedule_update` line 97 doesn't prevent the lock...
    
    Related Github issues: #92
    vlebourl committed Jun 29, 2020
    Configuration menu
    Copy the full SHA
    fe7ede4 View commit details
    Browse the repository at this point in the history
  6. [WIP] Add the wait to all entities.

    Also clear the exec_queue if it's not executing anymore.
    
    Related Github issues: #92
    vlebourl committed Jun 29, 2020
    Configuration menu
    Copy the full SHA
    c98c526 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    ff7dfd1 View commit details
    Browse the repository at this point in the history

Commits on Jul 1, 2020

  1. Configuration menu
    Copy the full SHA
    f3a2677 View commit details
    Browse the repository at this point in the history

Commits on Jul 2, 2020

  1. Update switch.py

    vlebourl authored Jul 2, 2020
    Configuration menu
    Copy the full SHA
    f9f471c View commit details
    Browse the repository at this point in the history