def resume_scaling_group(self, request): """ Resume a scaling group. This means that scaling policies will now get executed as usual. This is an idempotent operation - resuming an already running group does nothing. """ group = self.store.get_scaling_group(self.log, self.tenant_id, self.group_id) return controller.resume_scaling_group(self.log, transaction_id(request), group)
def resume_scaling_group(request, log, tenant_id, scaling_group_id): """ Resume a scaling group. This means that scaling policies will now get executed as usual. This is an idempotent operation - resuming an already running group does nothing. """ group = get_store().get_scaling_group(log, tenant_id, scaling_group_id) return controller.resume_scaling_group(log, transaction_id(request), group)
def resume_scaling_group(self, request): """ Resume a scaling group. This means that scaling policies will now get executed as usual. This is an idempotent operation - resuming an already running group does nothing. """ group = self.store.get_scaling_group( self.log, self.tenant_id, self.group_id) return controller.resume_scaling_group( self.log, transaction_id(request), group, self.dispatcher)