calling complete! on already completed task messes up stats
@seancorfield がすでに取り組んでいます。
2025年9月2日 から。
評価
この issue はまだ評価されていません。
説明
I'm not sure if this is as expected, but I found this behavior when I was trying stuff in REPL.
> (dq/put! q :test "test task")
> (def t (dq/take! q :test))
> (dq/complete! t)
true
> (get (dq/stats q) "test")
{:in-progress 0, :completed 1, :retried 0, :enqueued 1, :num-slabs 1, :num-active-slabs 1}
> (dq/complete! t)
true
> (get (dq/stats q) "test")
{:in-progress -1, :completed 2, :retried 0, :enqueued 1, :num-slabs 1, :num-active-slabs 1}
Is this expected behavior and the caller is responsible of keeping track of task status?
If so, is there possibility of making status function public, so that we can check the status of the task?(currently it's private)
- 主要言語
- Clojure
- スター
- 407
- フォーク
- 30
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
clj-commons/durable-queue のほかの issue
-
難易度 5/5 1週間以上 初心者へのやさしさ 30/100
clj-commons/durable-queue#31 ·
-
Slabs can grow larger than max-queue-size再び着手できるかも @seancorfield が 412 日前に担当しましたが、オープン中のプルリクエストはありません。 オープンneeds analysis
clj-commons/durable-queue#18 · コメント 1 件 · 担当者 1 名 ·
-
Thread safety of take!, put!再び着手できるかも @seancorfield が 412 日前に担当しましたが、オープン中のプルリクエストはありません。 オープンneeds analysis
clj-commons/durable-queue#16 · コメント 7 件 · 担当者 1 名 ·
-
When can a statistic be negative?再び着手できるかも @seancorfield が 412 日前に担当しましたが、オープン中のプルリクエストはありません。 オープンneeds analysis
clj-commons/durable-queue#12 · コメント 6 件 · 担当者 1 名 ·
clj-commons/durable-queue の issue をすべて見る
似ている issue
-
Usage analytics `v_tables` ignores table metadata set by users (`metabase_table_user_settings`)オープン.Needs Triage .Team/Graphy Priority:P3 Type:Bug
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
metabase/metabase#84762 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
NoahTheDuke/splint#57 · コメント 1 件 ·
-
bug
難易度 1/5 1時間未満 初心者へのやさしさ 92/100
editor-code-assistant/eca#655 ·
メンテナーはふだん 2 日以内に返信
-
category:runtime
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
jank-lang/jank#1110 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
IOP MCP
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
メンテナーはふだん 1 日以内に返信