marathon-autoscale icon indicating copy to clipboard operation
marathon-autoscale copied to clipboard

MODE(and, or) doesn't work

Open GeunSam2 opened this issue 5 years ago • 0 comments

and , or MODE doesn't work

Problem

There are some problems with the latest code. According to the manual, the marathon auto-scale service must operate in a total of five modes cpu, mem, sqs, and, or modes. However, the current and, or mode is not working.

error log

AttributeError: 'NoneType' object has no attribute 'get_app_details'
I0116 11:18:30.314077 10007 executor.cpp:401] Received killTask for task auto_auto-test.instance-f140cda0-3801-11ea-8aa8-e6b71f12091b._app.1
2020-01-16 02:18:45,728 - autoscale - ERROR - 'NoneType' object has no attribute 'get_app_details'
Traceback (most recent call last):
  File "marathon_autoscaler.py", line 269, in run
    direction = self.scaling_mode.scale_direction()
  File "/marathon-autoscale/autoscaler/modes/scalebycpuormem.py", line 42, in scale_direction
    results.append(self.mode_map[mode].scale_direction())
  File "/marathon-autoscale/autoscaler/modes/scalecpu.py", line 46, in scale_direction
    value = self.get_value()
  File "/marathon-autoscale/autoscaler/modes/scalecpu.py", line 18, in get_value
    app_task_dict = self.app.get_app_details()
AttributeError: 'NoneType' object has no attribute 'get_app_details'

GeunSam2 avatar Jun 30 '20 08:06 GeunSam2