(cls, actor_options)
| 2680 | |
| 2681 | |
| 2682 | def _make_actor(cls, actor_options): |
| 2683 | Class = _modify_class(cls) |
| 2684 | _inject_tracing_into_class(Class) |
| 2685 | |
| 2686 | if "max_restarts" in actor_options: |
| 2687 | if actor_options["max_restarts"] != -1: # -1 represents infinite restart |
| 2688 | # Make sure we don't pass too big of an int to C++, causing |
| 2689 | # an overflow. |
| 2690 | actor_options["max_restarts"] = min( |
| 2691 | actor_options["max_restarts"], ray_constants.MAX_INT64_VALUE |
| 2692 | ) |
| 2693 | |
| 2694 | return ActorClass._ray_from_modified_class( |
| 2695 | Class, |
| 2696 | ActorClassID.from_random(), |
| 2697 | actor_options, |
| 2698 | ) |
| 2699 | |
| 2700 | |
| 2701 | @PublicAPI |
nothing calls this directly
no test coverage detected
searching dependent graphs…