tareas en segundo plano
This commit is contained in:
parent
d9af566fd1
commit
a13afd9ab0
4 changed files with 7 additions and 2 deletions
1
Gemfile
1
Gemfile
|
@ -17,6 +17,7 @@ gem 'jbuilder', '~> 2.5'
|
|||
# gem 'redis', '~> 4.0'
|
||||
# Use ActiveModel has_secure_password
|
||||
gem 'bcrypt', '~> 3.1.7'
|
||||
gem 'sucker_punch'
|
||||
|
||||
gem 'validate_url'
|
||||
gem 'webpush'
|
||||
|
|
|
@ -195,6 +195,8 @@ GEM
|
|||
net-scp (>= 1.1.2)
|
||||
net-ssh (>= 2.8.0)
|
||||
stackprof (0.2.15)
|
||||
sucker_punch (2.1.2)
|
||||
concurrent-ruby (~> 1.0)
|
||||
thor (1.0.1)
|
||||
thread_safe (0.3.6)
|
||||
tzinfo (1.2.6)
|
||||
|
@ -237,6 +239,7 @@ DEPENDENCIES
|
|||
spring-watcher-listen (~> 2.0.0)
|
||||
sqlite3
|
||||
stackprof
|
||||
sucker_punch
|
||||
validate_url
|
||||
webpush
|
||||
yard
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class ApplicationJob < ActiveJob::Base
|
||||
include SuckerPunch::Job
|
||||
end
|
||||
|
|
|
@ -61,8 +61,8 @@ Rails.application.configure do
|
|||
|
||||
# Use a real queuing backend for Active Job (and separate queues per
|
||||
# environment)
|
||||
# config.active_job.queue_adapter = :resque
|
||||
# config.active_job.queue_name_prefix = "miniloom-api_#{Rails.env}"
|
||||
config.active_job.queue_adapter = :sucker_punch
|
||||
config.active_job.queue_name_prefix = "lumi_#{Rails.env}"
|
||||
|
||||
# config.action_mailer.perform_caching = false
|
||||
|
||||
|
|
Loading…
Reference in a new issue