python/ray/workflow/api.py
def create(dag_node: "DAGNode", *args, **kwargs) -> Workflow:
    """Converts a DAG into a workflow.

    Args:
        dag_node: The DAG to be converted.
        args: Positional arguments of the DAG input node.
        kwargs: Keyword arguments of the DAG input node.
    """
    from ray.workflow.dag_to_workflow import transform_ray_dag_to_workflow

    if not isinstance(dag_node, DAGNode):
        raise TypeError("Input should be a DAG.")
    input_context = DAGInputData(*args, **kwargs)
    return transform_ray_dag_to_workflow(dag_node, input_context)
Converts a DAG into a workflow.

    Args:
        dag_node: The DAG to be converted.
        args: Positional arguments of the DAG input node.
        kwargs: Keyword arguments of the DAG input node.
    
Converts a DAG into a workflow.
Converts a DAG into a workflow .
def create(dag_node: "DAGNode", *args, **kwargs) -> Workflow:
    from ray.workflow.dag_to_workflow import transform_ray_dag_to_workflow
    if not isinstance(dag_node, DAGNode):
        raise TypeError("Input should be a DAG.")
    input_context = DAGInputData(*args, **kwargs)
    return transform_ray_dag_to_workflow(dag_node, input_context)
def create ( dag_node : "DAGNode" , * args , ** kwargs ) -> Workflow : from ray . workflow . dag_to_workflow import transform_ray_dag_to_workflow if not isinstance ( dag_node , DAGNode ) : raise TypeError ( "Input should be a DAG." ) input_context = DAGInputData ( * args , ** kwargs ) return transform_ray_dag_to_workflow ( dag_node , input_context )
Converts a DAG into a workflow.
Converts a DAG into a workflow .
"""Converts a DAG into a workflow.

    Args:
        dag_node: The DAG to be converted.
        args: Positional arguments of the DAG input node.
        kwargs: Keyword arguments of the DAG input node.
    """
dag_node
"DAGNode"
The DAG to be converted.
The DAG to be converted .
args
Positional arguments of the DAG input node.
Positional arguments of the DAG input node .
kwargs
Keyword arguments of the DAG input node.
Keyword arguments of the DAG input node .