options to skip rakefile
まだ誰も着手していません。
評価
調査の方向性
resque-pool のデーモン化スクリプトと、既存の --init の処理から始めます。Rakefile と resque:pool タスクがどのように読み込まれるかを追跡し、そのうえで、init スクリプトが引き続き環境を読み込んで設定している状態で、--no-rake から Resque::Pool.run を呼び出せることを確認します。
索引モデルが issue の本文から書いたものです。
説明
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
環境構築
はじめの一歩
- 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時間 初心者へのやさしさ 75/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
solana-foundation/pay-kit#341 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 72/100
TheOdinProject/curriculum#31427 · コメント 3 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
cyclestreets/cyclescape#1107 · リアクション 1 件 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 95/100
メンテナーはふだん 1 日以内に返信