quirrel-dev / owl

A high-performance, Redis-backed job queueing library originally built for Quirrel. Has an in-memory mode for development use cases.
MIT License
96 stars 11 forks source link

Fix Exclusive Starvation issue #51

Closed Skn0tt closed 3 years ago

Skn0tt commented 3 years ago

Before, exclusive jobs could starve if there were a constant stream of non-exclusive jobs that pushed themselves in-line.

This PR changes the behaviour: Whenever an exclusive job is encountered, it'll block all non-exclusive jobs behind it. That way, it will never starve.

Co-authored-by: Antony Kamp tony.kamp@web.de

coveralls commented 3 years ago

Pull Request Test Coverage Report for Build 635272950


Totals Coverage Status
Change from base Build 632398477: -0.2%
Covered Lines: 259
Relevant Lines: 276

💛 - Coveralls