Skip to content

Support commands retrying when global lock is held #13964

@shonfeder

Description

@shonfeder

We fixed the bad hanging behavior reported in #12685 by ensuring that the commands would not end up hanging forever waiting for an RPC server what wasn't going to appear. This indeed prevents hanging, but it still omits some helpful low-hanging fruit: rather than just failing with error, we can make commands wait to obtain the lock.

This waiting behavior should be

  • conditionally enabled (probably opt-out, I'd think, but we can solicit feedback to decide this)
  • with configurable retries/timeout
  • designed so it wouldn't interfere with the likely near term addition of a daemon build server modality

The need for this is currently reported by users making heavy use of AI agents.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions