Class: Kyklos::Adapters::ShoryukenAdapter::Worker

Inherits:
Object
  • Object
show all
Includes:
Shoryuken::Worker
Defined in:
lib/kyklos/adapters/shoryuken_adapter.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.config_pathObject



131
132
133
# File 'lib/kyklos/adapters/shoryuken_adapter.rb', line 131

def self.config_path
  @@config_path
end

.config_path=(config_path) ⇒ Object



127
128
129
# File 'lib/kyklos/adapters/shoryuken_adapter.rb', line 127

def self.config_path=(config_path)
  @@config_path = config_path
end

Instance Method Details

#perform(sqs_msg, body) ⇒ Object



135
136
137
138
139
140
141
# File 'lib/kyklos/adapters/shoryuken_adapter.rb', line 135

def perform(sqs_msg, body)
  data = JSON.load(body)
  job_id =data['job_id']
  if job_id
    kyklos.run(job_id)
  end
end