prefect_ray.context
Contexts to manage Ray clusters and tasks.
Functions
remote_options
@remote calls
for task runs. If contexts are nested, new options are merged with options
in the outer context. If a key is present in both, the new option will be used.
Examples:
Use 4 CPUs and 2 GPUs for the process task:
Classes
RemoteOptionsContext
The context for Ray remote_options management.
Attributes:
current_remote_options: A set of current remote_options in the context.
get
RemoteOptionsContext
instead of None if no context exists.