Function
run_serve
(config: Config, stop_event=None)
Source from the content-addressed store, hash-verified
| 615 | |
| 616 | |
| 617 | def run_serve(config: Config, stop_event=None) -> None: |
| 618 | ray.init( |
| 619 | namespace=config.ray_namespace, |
| 620 | runtime_env={ |
| 621 | "env_vars": { |
| 622 | LOG_DIR_ENV_VAR: config.log.save_dir, |
| 623 | LOG_LEVEL_ENV_VAR: "INFO", |
| 624 | } |
| 625 | }, |
| 626 | ) |
| 627 | try: |
| 628 | serve(config) |
| 629 | finally: |
| 630 | if stop_event: |
| 631 | stop_event.set() |
| 632 | ray.shutdown() |
| 633 | |
| 634 | |
| 635 | @parameterized_class( |
Callers
nothing calls this directly
Tested by
no test coverage detected