RIP
Tutorial
Tags
Topics
Examples
eBooks
Tutorial by Examples
Introduction
Available since Rails 4.2, Active Job is a framework for declaring jobs and making them run on a variety of queuing backends. Recurring or punctual tasks that are not blocking and can be run in parallel are good use cases for Active Jobs.
Sample Job
class UserUnsubscribeJob < ApplicationJob queue_as :default def perform(user) # this will happen later user.unsubscribe end end
Creating an Active Job via the generator
$ rails g job user_unsubscribe
Page 1 of 1
1
Cookie
This website stores cookies on your computer.
We use cookies to enhance your experience on our website and deliver personalized content.
For more details on our cookie usage, please review our
Cookie Policy
and
Privacy Policy
Accept all Cookies
Leave this website