mirror of
https://github.com/internetee/registry.git
synced 2025-08-05 01:11:43 +02:00
Add sidekiq as a job backend
This commit is contained in:
parent
313731232e
commit
929ada8fd0
22 changed files with 109 additions and 154 deletions
|
@ -62,9 +62,10 @@ Rails.application.configure do
|
|||
# Use an evented file watcher to asynchronously detect changes in source code,
|
||||
# routes, locales, etc. This feature depends on the listen gem.
|
||||
config.file_watcher = ActiveSupport::EventedFileUpdateChecker
|
||||
end
|
||||
|
||||
# In this mode, any jobs you queue will be run in the same thread, synchronously
|
||||
# (that is, MyJob.enqueue runs the job and won't return until it's completed).
|
||||
# This makes your application's behavior easier to test
|
||||
Que.mode = :sync
|
||||
# In this mode, any jobs you queue will be run in the same thread, synchronously
|
||||
# (that is, MyJob.enqueue runs the job and won't return until it's completed).
|
||||
# This makes your application's behavior easier to test
|
||||
config.active_job.queue_adapter = :test
|
||||
|
||||
end
|
||||
|
|
|
@ -87,8 +87,3 @@ Rails.application.configure do
|
|||
# Do not dump schema after migrations.
|
||||
config.active_record.dump_schema_after_migration = false
|
||||
end
|
||||
|
||||
# In off mode, queueing a job will simply insert it into the database -
|
||||
# the current process will make no effort to run it.
|
||||
# You should use this if you want to use a dedicated process to work tasks
|
||||
Que.mode = :off
|
||||
|
|
|
@ -42,5 +42,3 @@ Rails.application.configure do
|
|||
# If set to :null_store, Setting.x returns nil after first spec runs (database is emptied)
|
||||
config.cache_store = :memory_store
|
||||
end
|
||||
|
||||
Que.mode = :sync
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue