Class: SidekiqAutoscale::Strategies::BaseScaling

Inherits:
Object
  • Object
show all
Defined in:
lib/sidekiq_autoscale/strategies/base_scaling.rb

Instance Method Summary collapse

Instance Method Details

#log_job(_job) ⇒ Object

This strategy doesn’t care about individual job metrics



7
# File 'lib/sidekiq_autoscale/strategies/base_scaling.rb', line 7

def log_job(_job); end

#scaling_direction(_job) ⇒ Object



13
14
15
# File 'lib/sidekiq_autoscale/strategies/base_scaling.rb', line 13

def scaling_direction(_job)
  0
end

#workload_change_needed?(_job) ⇒ Boolean

Returns:

  • (Boolean)


9
10
11
# File 'lib/sidekiq_autoscale/strategies/base_scaling.rb', line 9

def workload_change_needed?(_job)
  false
end