ActiveJob
参考:
Active Job の基礎 | Rails ガイド [Official]
ActiveJob::Base | Ruby on Rails API [Official]
rails/activejob at master · rails/rails – GitHub
概要
参考:
使い方
参考:
Rails 4.2で導入された Active Job を使ってみよう – Qiita
Active Job の簡単な導入手順と RSpec の書き方について | 酒と涙とRubyとRailsと
ActiveJob の仕組みを読み解く | freedom-man
Rails 4.2の Active Job を使って非同期に処理を実行したりメールを送信してみる | genonymous
Active Job – Sidekiq を使っての Job の実行 | DevelopersIO
ActiveJob と ActiveModel 翻訳| TechRacho
ActiveJob の仕組みを読み解く | freedom-man
rails generate job コマンド
$ rails generate job export_records
参考:
Rails 4.2 で導入された Active Job を使ってみよう – Qiita
ActiveJob::Base
参考:
ActiveJob::Base | Ruby on Rails API [Official]
perform_later
参考:
perform_later – ActiveJob::Enqueuing::ClassMethods | Ruby on Rails API [Official]
perform_now
参考:
perform_now – ActiveJob::Execution::ClassMethods | Ruby on Rails API [Official]
ActiveJob::Arguments
参考:
rails/arguments.rb at v5.2.2 · rails/rails – GitHub
Mail and deliver_later doesn’t work with date argument · Issue #18519 · rails/rails – GitHub
ActiveJob::Logging
参考:
activejob/lib/active_job/logging.rb | Ruby on Rails API [Official]
rails/logging.rb at v5.2.3 · rails/rails – GitHub
logger
参考:
logger – rails/logging.rb at v5.2.3 · rails/rails – GitHub
ActiveJob::Logging::LogSubscriber
参考:
LogSubscriber – rails/logging.rb at v5.2.3 · rails/rails – GitHub
How do I filter or remove logging of ActiveJob arguments? – Stack Overflow
provider_job_id
参考:
Rails 4.2 get delayed job id from active job – Stack Overflow
rails/delayed_job_adapter.rb at v5.2.0 · rails/rails – GitHub
rails/core.rb at v5.2.0 · rails/rails – GitHub
retry_on / discard_on
参考:
ActiveJob::Base に retry_on / discard_on を追加 – Qiita
ジョブをテストする
参考:
Active Job の簡単な導入手順と RSpec の書き方について | 酒と涙とRubyとRailsと
ActiveJob#perform_later にモデルのインスタンスを渡すテストを書く | Bit Journey’s Tech Blog
RSpec でキューイングした ActiveJob を同期実行する – Qiita
RSpec で Active Job のテストを書く | milk1000cc’s blog
Tell ActiveJob to perform_later as perform_now in Test or Spec | EquiValent
Testing Rails ActiveJob with RSpec | Chuck J Hardy
ActiveJob::TestHelper
参考:
ActiveJob::TestHelper | Ruby on Rails API [Official]
have_enqueued_job
参考:
have_enqueued_job matcher | RSpec (Relish)
Activejob::PerformLater
参考:
cristianbica/activejob-perform_later: Make any method perfomed later with ActiveJob – GitHub