Class: Shikibu::Integrations::Sidekiq::WorkflowWorker
- Inherits:
-
Object
- Object
- Shikibu::Integrations::Sidekiq::WorkflowWorker
- Includes:
- Sidekiq::Job
- Defined in:
- lib/shikibu/integrations/sidekiq.rb
Overview
Worker for running workflows
Instance Method Summary collapse
Instance Method Details
#perform(workflow_class_name, input = {}) ⇒ Object
42 43 44 45 46 |
# File 'lib/shikibu/integrations/sidekiq.rb', line 42 def perform(workflow_class_name, input = {}) klass = Object.const_get(workflow_class_name) symbolized_input = input.transform_keys(&:to_sym) Shikibu.run(klass, **symbolized_input) end |