def delete_runtime(self, ctx, runtime_id): LOG.info('Start to delete runtime %s.', runtime_id) self.orchestrator.delete_pool(runtime_id) db_api.delete_runtime(runtime_id) LOG.info('Deleted runtime %s.', runtime_id)
def delete_runtime(self, ctx, runtime_id): LOG.info('Start to delete runtime %s.', runtime_id) labels = {'runtime_id': runtime_id} self.orchestrator.delete_pool(runtime_id, labels=labels) db_api.delete_runtime(runtime_id) LOG.info('Deleted runtime %s.', runtime_id)
def delete_runtime(self, ctx, runtime_id): resource = {'type': 'runtime', 'id': runtime_id} LOG.info('Start to delete.', resource=resource) labels = {'runtime_id': runtime_id} self.orchestrator.delete_pool(runtime_id, labels=labels) db_api.delete_runtime(runtime_id) LOG.info('Deleted.', resource=resource)
def delete_runtime(self, ctx, runtime_id): LOG.info('Start to delete runtime, id=%s', runtime_id) with db_api.transaction(): runtime = db_api.get_runtime(runtime_id) identifier = '%s-%s' % (runtime_id, runtime.name) labels = {'runtime_name': runtime.name, 'runtime_id': runtime_id} self.orchestrator.delete_pool(identifier, labels=labels) db_api.delete_runtime(runtime_id) LOG.info('Runtime %s deleted.', runtime_id)