Exemplo n.º 1
0
 def pause_scaling_group(self, request):
     """
     Pause a scaling group.  This means that no scaling policies will get
     executed (execution will be rejected).  This is an idempotent operation -
     pausing an already paused group does nothing.
     """
     group = self.store.get_scaling_group(self.log, self.tenant_id, self.group_id)
     return controller.pause_scaling_group(self.log, transaction_id(request), group)
Exemplo n.º 2
0
def pause_scaling_group(request, log, tenant_id, scaling_group_id):
    """
    Pause a scaling group.  This means that no scaling policies will get
    executed (execution will be rejected).  This is an idempotent operation -
    pausing an already paused group does nothing.
    """
    group = get_store().get_scaling_group(log, tenant_id, scaling_group_id)
    return controller.pause_scaling_group(log, transaction_id(request), group)
Exemplo n.º 3
0
 def pause_scaling_group(self, request):
     """
     Pause a scaling group.  This means that no scaling policies will get
     executed (execution will be rejected).  This is an idempotent
     operation - pausing an already paused group does nothing.
     """
     group = self.store.get_scaling_group(
         self.log, self.tenant_id, self.group_id)
     return controller.pause_scaling_group(
         self.log, transaction_id(request), group, self.dispatcher)