owl
owl copied to clipboard
blocking peeks
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.