antirez / antirez/disque

[Request] Iterate/Peek delayed jobs

オープン
#180 コメント 2 件 リアクション 1 件 担当者 0 名 GitHub で見る
主要言語
C
スター
8.1k
フォーク
532
PR マージ指標
30日以内にマージされた PR はありません

説明

Currently there's no way to find jobs that have been queued with a delay using `JSCAN` or `QPEEK`.
Similarly `QSTAT` on a queue containing only delayed jobs runs null, but I think this is intentional?

My use case is that I want to sometimes execute jobs earlier than their set delays.
As a work around I'm maintaining a list of delayed job ids in my application code for when I need to process jobs immediately and using `SHOW` to retrieve the job then `ACKJOB` as normal to mark it processed.

It would be good if `QPEEK` and `JSCAN` had an option to include or show only delayed jobs in their response so it would be possible to iterate and dequeue them if they're no longer necessary or process them immediately.

A possible implementation may be adding a new job state `delayed`, which would allow `JSCAN` to query for it.

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。