Require dependencies to enable live reload in dev for Sidekiq.

This commit is contained in:
Guo Xiang Tan 2017-10-06 11:39:00 +08:00
parent d67f0b39ae
commit 4ba5e678d8
6 changed files with 13 additions and 0 deletions

View File

@ -1,3 +1,5 @@
require_dependency 'user_destroyer'
module Jobs
class FixPrimaryEmailsForStagedUsers < Jobs::Onceoff
def execute_onceoff(args)

View File

@ -2,6 +2,7 @@ require 'open-uri'
require 'nokogiri'
require 'excon'
require_dependency 'retrieve_title'
require_dependency 'topic_link'
module Jobs
class CrawlTopicLink < Jobs::Base

View File

@ -1,3 +1,5 @@
require_dependency 'post'
module Jobs
class NotifyMailingListSubscribers < Jobs::Base

View File

@ -1,3 +1,7 @@
require_dependency 'admin_dashboard_data'
require_dependency 'group'
require_dependency 'group_message'
module Jobs
class DashboardStats < Jobs::Scheduled
every 30.minutes

View File

@ -1,4 +1,5 @@
require_dependency 'version'
require_dependency 'site_setting'
module DiscourseHub

View File

@ -1,3 +1,6 @@
require_dependency 'i18n'
require_dependency 'user'
module Jobs
class NarrativeInit < Jobs::Base
sidekiq_options queue: 'critical'