Skip to content

limit retries when acquring rados lock #125

@phlogistonjohn

Description

@phlogistonjohn

Prevent the process from hanging indefinitely on acquiring the lock.


Maybe not too crucial but can be limit retries here instead of trying indefinitely?

          Maybe not too crucial but can be limit retries here instead of  trying indefinitely?

I think if the condition that causes the ObjectBusy exception persists indefinitely it could lead to a hung process that never completes.

        self, name: str, cookie: str, *, delay: int = 1, max_retries: int = 10

Originally posted by @avanthakkar in #123 (comment)

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