python/ray/_private/ray_option_utils.py
def validate_task_options(options: Dict[str, Any], in_options: bool):
    """Options check for Ray tasks.

    Args:
        options: Options for Ray tasks.
        in_options: If True, we are checking the options under the context of
            ".options()".
    """
    for k, v in options.items():
        if k not in task_options:
            raise ValueError(
                f"Invalid option keyword {k} for remote functions. "
                f"Valid ones are {list(task_options)}."
            )
        task_options[k].validate(k, v)
    if in_options and "max_calls" in options:
        raise ValueError("Setting 'max_calls' is not supported in '.options()'.")
    _check_deprecate_placement_group(options)
Options check for Ray tasks.

    Args:
        options: Options for Ray tasks.
        in_options: If True, we are checking the options under the context of
            ".options()".
    
Options check for Ray tasks.
Options check for Ray tasks .
def validate_task_options(options: Dict[str, Any], in_options: bool):
    for k, v in options.items():
        if k not in task_options:
            raise ValueError(
                f"Invalid option keyword {k} for remote functions. "
                f"Valid ones are {list(task_options)}."
            )
        task_options[k].validate(k, v)
    if in_options and "max_calls" in options:
        raise ValueError("Setting 'max_calls' is not supported in '.options()'.")
    _check_deprecate_placement_group(options)
def validate_task_options ( options : Dict [ str , Any ] , in_options : bool ) : for k , v in options . items ( ) : if k not in task_options : raise ValueError ( f"Invalid option keyword {k} for remote functions. " f"Valid ones are {list(task_options)}." ) task_options [ k ] . validate ( k , v ) if in_options and "max_calls" in options : raise ValueError ( "Setting 'max_calls' is not supported in '.options()'." ) _check_deprecate_placement_group ( options )
Options check for Ray tasks.
Options check for Ray tasks .
"""Options check for Ray tasks.

    Args:
        options: Options for Ray tasks.
        in_options: If True, we are checking the options under the context of
            ".options()".
    """
options
Dict[str, Any]
Options for Ray tasks.
Options for Ray tasks .
in_options
bool
If True, we are checking the options under the context of
".options()".
If True we are checking the options under the context of " . options () " .