Resque at Sharethrough Updated 9/1/2015: We have updated our SlackErrorService to use Sidekiq’s global error handlers feature. Back in 2013 when we began our platform rewrite, there were many Ruby-based queuing options available. The following three stood out as the best choices: Delayed Job, Resque, and Sidekiq. Delayed Job uses ActiveRecord and your database to store job metadata, while Resque a
rails4.0でバッチ処理を作成する手順のメモ railsでバッチ処理を行うにはrails runnerやrakeを作成する方法があるようだ。 今回はrails runnerで作成した。 1.config/application.rbを修正してlib/tasks配下をオートロードの対象とする 1 2 3 4 5 6 7 8 9 10 11 # config/application.rb module Project class Application < Rails::Application # ... # # lib配下をオートロードの対象とする config.autoload_paths += %W(#{config.root}/lib) end end 2.実行ファイルをlib/tasks配下に作成 hoge_task.rb を作成 1 2 3 4 5 class Tasks::H
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く