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

Clear previous changes before locking process for heartbeat #351

Merged
merged 1 commit into from
Sep 16, 2024

Commits on Sep 16, 2024

  1. Clear previous changes before locking process for heartbeat

    For example, in case of a previous heartbeat failed because
    of a DB issue (with SQLite depending on configuration, a
    `BusyException` is not rare) and we still have the unpersisted
    value in `last_heartbeat_at`, which means that `with_lock` will result
    in:
    ```
    RuntimeError: Locking a record with unpersisted changes is not supported
    ```
    
    Fixes #350
    rosa committed Sep 16, 2024
    Configuration menu
    Copy the full SHA
    aa64f12 View commit details
    Browse the repository at this point in the history