start without running queues throws error
まだ誰も着手していません。
評価
調査の方向性
lib/resque/pool.rb の 243 行目付近にある reap_all_workers から始め、worker が実行されていない状態で bundle exec resque-pool を使って失敗を再現します。reaper が存在しない worker をどのように処理するかを追跡し、pool の起動時に nil.queues エラーが発生せず、pool が停止しないことを確認します。
索引モデルが issue の本文から書いたものです。
説明
When starting for the first time without running workers an error is thrown and stops the whole pool from running:
bundle exec resque-pool
=> calls reaper
gems/resque-pool-0.2.0/lib/resque/pool.rb:243:in `reap_all_workers': You have a nil object when you didn't expect it! (NoMethodError)
The error occurred while evaluating nil.queues
Possible solution, add 'if worker' to reaper message:
log "Reaped resque worker[#{status.pid}] (status: #{status.exitstatus}) queues: #{worker.queues.join(",")}" if worker
I am not sure, but i think last week i had it running local without this error. maybe it is the startup time of the workers which prevents the reaper from seeing them.
- 主要言語
- Ruby
- スター
- 456
- フォーク
- 149
- 平均マージ
- 1日 21時間
- マージ済み PR(30日)
- 1
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
resque/resque-pool のほかの issue
-
help wanted
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
resque/resque-pool#189 · コメント 2 件 · リアクション 3 件 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 25/100
resque/resque-pool#177 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
resque/resque-pool#176 · コメント 3 件 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
resque/resque-pool#172 · コメント 1 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
resque/resque-pool#168 · コメント 1 件 ·
resque/resque-pool の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 83/100
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 2 日以内に返信