Ability to control the sleep interval between two lock retries in acquire API
Registered by
Maoz Guttman
Acquire prototype is:
def acquire(self, timeout=None)
I would like to control the sleep time between two lock tries in the call to time.sleep. Today the sleep time is timeout/10.
My proposal is to add to interval argument to acquire:
def acquire(self, timeout=None, interval=None)
If interval is None, then do the same calculation as today in the time.sleep (for backward compatibility). Otherwise use that interval.
Blueprint information
- Status:
- Not started
- Approver:
- None
- Priority:
- Undefined
- Drafter:
- Maoz Guttman
- Direction:
- Needs approval
- Assignee:
- None
- Definition:
- New
- Series goal:
- None
- Implementation:
- Unknown
- Milestone target:
- None
- Started by
- Completed by
Related branches
Related bugs
Sprints
Whiteboard
(?)