plivo / sharq

The core SHARQ Library that powers SHARQ Server
http://sharq.io
MIT License
50 stars 14 forks source link

Handle known races caused by requeue script #18

Closed ppai-plivo closed 3 years ago

ppai-plivo commented 3 years ago

The PR is divided into two parts for easier review. The first commit only renames variables for the whole codebase to become more readable.

The second part addresses two known races caused by running requeue scripts from multiple instances. The dequeue script assumes existence of some keys which may have been removed by the finish script. Testing should be able to uncover more such races if any.