Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

rake resque:pool isn't respecting TERM_CHILD?

オープン
#150 コメント 1 件 リアクション 1 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
ruby
領域
backend, cli

調査の方向性

Compare the rake resque:pool entry point with the resque-pool executable, focusing first on how TERM_CHILD is read and passed to the pool manager. Reproduce both commands with TERM_CHILD=1 and verify that the rake task selects the same term-graceful-and-wait behavior and emits the corresponding enabled message.

索引モデルが issue の本文から書いたものです。

説明

I think I'm seeing an issue where rake resque:pool doesn't honor the TERM_CHILD=1 flag. If I run resque-pool, it does work as expected.

Here is the output from rake resque:pool:

~/app $ TERM_CHILD=1 bundle exec rake resque:pool
resque-pool-worker[integrations][34943]: Starting worker abedford-mbpr.local:34943:*
resque-pool-worker[integrations][34944]: Starting worker abedford-mbpr.local:34944:*
resque-pool-manager[integrations][34935]: started manager
resque-pool-worker[integrations][34945]: Starting worker abedford-mbpr.local:34945:*
resque-pool-manager[integrations][34935]: Pool contains worker PIDs: [34943, 34944, 34945, 34946, 34947]
resque-pool-worker[integrations][34946]: Starting worker abedford-mbpr.local:34946:*
resque-pool-worker[integrations][34947]: Starting worker abedford-mbpr.local:34947:*
^Cresque-pool-manager[integrations][34935]: INT: immediate shutdown (graceful worker shutdown)
resque-pool-manager[integrations][34935]: Sending TERM to all workers
resque-pool-manager[integrations][34935]: manager finished

Here is the output from resque-pool:

~/app $ TERM_CHILD=1 bundle exec resque-pool
resque-pool-manager[integrations][34858]: Resque Pool running in development environment
resque-pool-manager[34858]: TERM_CHILD enabled, so will user 'term-graceful-and-wait' behaviour
resque-pool-worker[integrations][34866]: Starting worker abedford-mbpr.local:34866:*
resque-pool-worker[integrations][34867]: Starting worker abedford-mbpr.local:34867:*
resque-pool-worker[integrations][34868]: Starting worker abedford-mbpr.local:34868:*
resque-pool-manager[integrations][34858]: started manager
resque-pool-manager[integrations][34858]: Pool contains worker PIDs: [34866, 34867, 34868, 34869, 34870]
resque-pool-worker[integrations][34870]: Starting worker abedford-mbpr.local:34870:*
resque-pool-worker[integrations][34869]: Starting worker abedford-mbpr.local:34869:*
^Cresque-pool-manager[integrations][34858]: INT: immediate shutdown (graceful worker shutdown)
resque-pool-manager[integrations][34858]: Sending TERM to all workers
resque-pool-manager[integrations][34858]: manager finished

I notice this line: resque-pool-manager[34858]: TERM_CHILD enabled, so will user 'term-graceful-and-wait' behaviour indicating that term child is enabled. Does the lack of this in the rake resque:pool mean what I think it does - that TERM_CHILD isn't respected?

主要言語
Ruby
スター
456
フォーク
149
平均マージ
1日 21時間
マージ済み PR(30日)
1

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

resque/resque-pool のほかの issue

resque/resque-pool の issue をすべて見る

似ている issue

Ruby の issue をもっと見る

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

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