mirror of
https://github.com/vale981/ray
synced 2025-03-09 12:56:46 -04:00

* Improve reporter module * Add test_node_physical_stats to test_reporter.py * Add test_class_method_route_table to test_dashboard.py * Add stats_collector module for dashboard * Subscribe actor table data * Add log module for dashboard * Only enable test module in some test cases * CI run all dashboard tests * Reduce test timeout to 10s * Use fstring * Remove unused code * Remove blank line * Fix dashboard tests * Fix asyncio.create_task not available in py36; Fix lint * Add format_web_url to ray.test_utils * Update dashboard/modules/reporter/reporter_head.py Co-authored-by: Max Fitton <mfitton@berkeley.edu> * Add DictChangeItem type for Dict change * Refine logger.exception * Refine GET /api/launch_profiling * Remove disable_test_module fixture * Fix test_basic may fail Co-authored-by: 刘宝 <po.lb@antfin.com> Co-authored-by: Max Fitton <mfitton@berkeley.edu>
19 lines
532 B
Python
19 lines
532 B
Python
import logging
|
|
|
|
import mimetypes
|
|
|
|
import ray.new_dashboard.utils as dashboard_utils
|
|
|
|
logger = logging.getLogger(__name__)
|
|
routes = dashboard_utils.ClassMethodRouteTable
|
|
|
|
|
|
class LogAgent(dashboard_utils.DashboardAgentModule):
|
|
def __init__(self, dashboard_agent):
|
|
super().__init__(dashboard_agent)
|
|
mimetypes.add_type("text/plain", ".err")
|
|
mimetypes.add_type("text/plain", ".out")
|
|
routes.static("/logs", self._dashboard_agent.log_dir, show_index=True)
|
|
|
|
async def run(self, server):
|
|
pass
|