client.cli.workflow.resources.yaml ================================== .. py:module:: client.cli.workflow.resources.yaml .. autoapi-nested-parse:: Workflow resources yaml command. Classes ------- .. autoapisummary:: client.cli.workflow.resources.yaml.MutuallyExclusiveOption Functions --------- .. autoapisummary:: client.cli.workflow.resources.yaml.yaml Module Contents --------------- .. py:class:: MutuallyExclusiveOption(*args: Any, **kwargs: Any) Bases: :py:obj:`click.Option` Custom option class for mutually exclusive options. Initialize the option with mutually exclusive options list. .. py:attribute:: mutually_exclusive .. py:method:: handle_parse_result(ctx: click.Context, opts: Dict[str, Any], args: List[str]) -> Tuple[Any, List[str]] Handle parse result and check for mutually exclusive options. .. py:function:: yaml(workflow_id: Optional[int], task_id: Optional[int], mem_strategy: str, core_strategy: str, runtime_strategy: str, cluster: Tuple[str, Ellipsis], output_file: Optional[str], stdout: bool) -> None Generate resource YAML from historical usage. Creates a resource configuration YAML file based on actual resource usage from previous runs. Requires either --workflow-id or --task-id. \b .. rubric:: Examples # Generate YAML for workflow, print to stdout jobmon workflow resources yaml -w 12345 --stdout # Generate YAML for specific task, save to file jobmon workflow resources yaml -t 789 -f resources.yaml # Use max values for all metrics jobmon workflow resources yaml -w 12345 --mem-strategy max \\ --core-strategy max --runtime-strategy max -f resources.yaml # Generate for multiple clusters jobmon workflow resources yaml -w 12345 -c slurm -c dummy --stdout