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
95 stars 10 forks source link

blocking peeks #156

Closed Skn0tt closed 1 month ago

Skn0tt commented 3 years ago

This PR is a draft for blocking peeks: It introduces a new Redis list for ready jobs (jobs that can be executed immediately), which can then be polled using the blocking BRPOP command. It keeps workers from needing to poll, and introduces a new actor to shove scheduled-and-ready jobs from scheduled over to ready (it's currently called the gatekeeper, but that's WIP.).

Just like #155, this PR is merely an idea. It's not yet a hard intent that I'm planning on implementing, we'll see if the need for this arises.