Module: JobWorkflow::AutoScaling

Extended by:
ActiveSupport::Concern
Defined in:
lib/job_workflow/auto_scaling.rb,
lib/job_workflow/auto_scaling/adapter.rb,
lib/job_workflow/auto_scaling/executor.rb,
lib/job_workflow/auto_scaling/configuration.rb,
lib/job_workflow/auto_scaling/adapter/aws_adapter.rb

Overview

Examples:

```ruby
class AutoScalingJob < ApplicationJob
  include JobWorkflow::AutoScaling

  target_queue_name "my_queue"
  min_count 2
  max_count 10
  step_count 2
  max_latency 1800
end
```

Defined Under Namespace

Modules: Adapter, ClassMethods Classes: Configuration, Executor

Instance Method Summary collapse

Instance Method Details

#performObject

: () -> void



33
34
35
# File 'lib/job_workflow/auto_scaling.rb', line 33

def perform
  Executor.new(self.class._config).update_desired_count
end