You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit f90bfd5
Browse filesBrowse the repository at this point in the historyBrowse files
The polling loop called `list_and_lock_head` repeatedly, which has the
side effect of locking items. Across iterations the total set of
actually-locked requests no longer matched the last response's items,
causing `unlock_requests` to occasionally report a different count.
Replace the polling with read-only `list_head` until all requests are
visible, then call `list_and_lock_head` exactly once. Apply the same
treatment to `test_request_queue_list_and_lock_head`, which shared the
racy pattern.
0 commit comments