Function
run_both
(config: Config, stop_event=None)
Source from the content-addressed store, hash-verified
| 597 | |
| 598 | |
| 599 | def run_both(config: Config, stop_event=None) -> None: |
| 600 | ray.init( |
| 601 | namespace=config.ray_namespace, |
| 602 | runtime_env={ |
| 603 | "env_vars": { |
| 604 | LOG_DIR_ENV_VAR: config.log.save_dir, |
| 605 | LOG_LEVEL_ENV_VAR: "INFO", |
| 606 | } |
| 607 | }, |
| 608 | ) |
| 609 | try: |
| 610 | both(config) |
| 611 | finally: |
| 612 | if stop_event: |
| 613 | stop_event.set() |
| 614 | ray.shutdown() |
| 615 | |
| 616 | |
| 617 | def run_serve(config: Config, stop_event=None) -> None: |
Callers
nothing calls this directly
Tested by
no test coverage detected