Class: GDK::Services::RailsBackgroundJobs

Inherits:
Required show all
Defined in:
lib/gdk/services/rails_background_jobs.rb

Instance Method Summary collapse

Methods inherited from Required

#enabled?

Methods inherited from Base

#enabled?, #initialize, #procfile_entry, #ready_message

Constructor Details

This class inherits a constructor from GDK::Services::Base

Instance Method Details

#commandObject



10
11
12
# File 'lib/gdk/services/rails_background_jobs.rb', line 10

def command
  %(support/exec-cd gitlab bin/background_jobs start_foreground --timeout #{config.gitlab.rails_background_jobs.timeout})
end

#envObject



14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# File 'lib/gdk/services/rails_background_jobs.rb', line 14

def env
  e = {
    SIDEKIQ_VERBOSE: config.gitlab.rails_background_jobs.verbose?,
    SIDEKIQ_QUEUES: %w[
      default mailers email_receiver
      hashed_storage:hashed_storage_migrator
      hashed_storage:hashed_storage_project_migrate
      hashed_storage:hashed_storage_project_rollback
      hashed_storage:hashed_storage_rollbacker
      project_import_schedule
      service_desk_email_receiver
    ].join(','),
    CACHE_CLASSES: config.gitlab.cache_classes,
    BUNDLE_GEMFILE: config.gitlab.rails.bundle_gemfile,
    SIDEKIQ_WORKERS: 1,
    ENABLE_BOOTSNAP: config.gitlab.rails.bootsnap?,
    RAILS_ENV: 'development',
    RAILS_RELATIVE_URL_ROOT: config.relative_url_root,
    GITALY_DISABLE_REQUEST_LIMITS: config.gitlab.gitaly_disable_request_limits
  }

  e[:GDK_GEO_SECONDARY] = 1 if config.geo? && config.geo.secondary?

  e
end

#nameObject



6
7
8
# File 'lib/gdk/services/rails_background_jobs.rb', line 6

def name
  'rails-background-jobs'
end