def get_queue_file_location(self, app_id): """ Gets the location of the queue.yaml or queue.xml file of a given application. Args: app_id: The application ID. Returns: The location of the queue.yaml or queue.xml file, and an empty string if it could not be found. """ queue_yaml = appscale_info.get_app_path(app_id) + 'queue.yaml' queue_xml = appscale_info.get_app_path(app_id) + '/war/WEB-INF/queue.xml' if file_io.exists(queue_yaml): return queue_yaml elif file_io.exists(queue_xml): return queue_xml else: return ""
def get_queue_file_location(self, app_id): """ Gets the location of the queue.yaml or queue.xml file of a given application. Args: app_id: The application ID. Returns: The location of the queue.yaml or queue.xml file, and an empty string if it could not be found. """ queue_yaml = appscale_info.get_app_path(app_id) + 'queue.yaml' queue_xml = appscale_info.get_app_path(app_id) + '/war/queue.xml' if file_io.exists(queue_yaml): return queue_yaml elif file_io.exists(queue_xml): return queue_xml else: return ""