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

options to skip rakefile

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

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

評価

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

調査の方向性

resque-pool のデーモン化スクリプトと、既存の --init の処理から始めます。Rakefile と resque:pool タスクがどのように読み込まれるかを追跡し、そのうえで、init スクリプトが引き続き環境を読み込んで設定している状態で、--no-rake から Resque::Pool.run を呼び出せることを確認します。

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

説明

feature-request

By default we load the rakefile and run the resque:pool rake task, because that follows the instructions in the resque README. We can also provide the ability to run Resque::Pool.run directly, from inside the resque-pool daemonizing script.

--init, -i <s>: Preload ruby script to initialize resque-pool
     --no-rake: Run without loading Rakefile or resque:pool task

to be run like so:
resque-pool -d -e production -i config/resque-pool-init.rb --no-rake

and config/resque-pool-init.rb might look like so:
require File.expand_path('environment', File.dirname(FILE))
# setup resque failure backend
# close any sockets or files in pool master
ActiveRecord::Base.connection.disconnect!
# and re-open them in the resque worker parent
Resque::Pool.after_prefork do |job|
ActiveRecord::Base.establish_connection
end

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

環境構築

はじめの一歩

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

resque/resque-pool のほかの issue

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

似ている issue

Ruby の issue をもっと見る

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

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