Module: SimpleWorker

Defined in:
lib/simple_worker/used_in_worker.rb,
lib/simple_worker/api.rb,
lib/simple_worker/base.rb,
lib/simple_worker/utils.rb,
lib/simple_worker/config.rb,
lib/simple_worker/railtie.rb,
lib/simple_worker/service.rb,
lib/simple_worker/server/overrides.rb

Overview

This is used when a bad worker is uploaded.

Defined Under Namespace

Modules: Api, UsedInWorker, Utils Classes: Base, Config, InvalidWorkerError, MergeHelper, Railtie, RequestError, Service

Class Method Summary collapse

Class Method Details

.disable_queueingObject



22
23
24
# File 'lib/simple_worker/server/overrides.rb', line 22

def self.disable_queueing()
  @queueing_enabled = false
end

.enable_queueingObject



26
27
28
# File 'lib/simple_worker/server/overrides.rb', line 26

def self.enable_queueing()
  @queueing_enabled = true
end

.queueing_enabled?Boolean

Returns:

  • (Boolean)


30
31
32
# File 'lib/simple_worker/server/overrides.rb', line 30

def self.queueing_enabled?
  @queueing_enabled
end

.running_classObject



11
12
13
# File 'lib/simple_worker/server/overrides.rb', line 11

def running_class
  @running_class
end

.running_class=(rc) ⇒ Object



8
9
10
# File 'lib/simple_worker/server/overrides.rb', line 8

def running_class=(rc)
  @running_class = rc
end

.task_dataObject



17
18
19
# File 'lib/simple_worker/server/overrides.rb', line 17

def task_data
  @task_data
end

.task_data=(td) ⇒ Object



14
15
16
# File 'lib/simple_worker/server/overrides.rb', line 14

def task_data=(td)
  @task_data = td
end