EvaluatorConfigurationUpdate#

pydantic model ansys.hps.client.rms.EvaluatorConfigurationUpdate#

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.

Show JSON schema
{
   "title": "EvaluatorConfigurationUpdate",
   "type": "object",
   "properties": {
      "id": {
         "anyOf": [
            {
               "type": "string"
            },
            {
               "type": "null"
            }
         ],
         "default": null,
         "description": "Unique database ID (read-only).",
         "title": "Id"
      },
      "evaluator_id": {
         "anyOf": [
            {
               "type": "string"
            },
            {
               "type": "null"
            }
         ],
         "default": null,
         "description": "ID of the parent evaluator (read-only).",
         "title": "Evaluator Id"
      },
      "last_modified": {
         "anyOf": [
            {
               "format": "date-time",
               "type": "string"
            },
            {
               "type": "null"
            }
         ],
         "default": null,
         "description": "Last modified time.",
         "title": "Last Modified"
      },
      "working_directory": {
         "anyOf": [
            {
               "type": "string"
            },
            {
               "type": "null"
            }
         ],
         "default": null,
         "title": "Working Directory"
      },
      "local_file_cache_max_size": {
         "anyOf": [
            {
               "type": "integer"
            },
            {
               "type": "null"
            }
         ],
         "default": null,
         "description": "Maximum allowed cache size in bytes.",
         "title": "Local File Cache Max Size"
      },
      "max_num_parallel_tasks": {
         "anyOf": [
            {
               "type": "integer"
            },
            {
               "type": "null"
            }
         ],
         "default": null,
         "title": "Max Num Parallel Tasks"
      },
      "task_directory_cleanup": {
         "anyOf": [
            {
               "$ref": "#/$defs/TaskDirectoryCleanupEnum"
            },
            {
               "type": "null"
            }
         ],
         "default": null,
         "title": "Task Directory Cleanup"
      },
      "resources": {
         "anyOf": [
            {
               "$ref": "#/$defs/EvaluatorResources"
            },
            {
               "type": "null"
            }
         ],
         "default": {
            "custom": {}
         }
      },
      "name": {
         "anyOf": [
            {
               "type": "string"
            },
            {
               "type": "null"
            }
         ],
         "default": null,
         "description": "Update the name of the evaluator, which updates the registration.",
         "title": "Name"
      },
      "loop_interval": {
         "anyOf": [
            {
               "type": "number"
            },
            {
               "type": "null"
            }
         ],
         "default": null,
         "description": "Number of seconds between each iteration of the evaluator's main loop.",
         "title": "Loop Interval"
      },
      "local_file_cache": {
         "anyOf": [
            {
               "type": "boolean"
            },
            {
               "type": "null"
            }
         ],
         "default": null,
         "description": "Whether to configure a local file cache in the file tool.",
         "title": "Local File Cache"
      },
      "applications": {
         "anyOf": [
            {
               "items": {
                  "$ref": "#/$defs/ApplicationInfo"
               },
               "type": "array"
            },
            {
               "type": "null"
            }
         ],
         "default": [],
         "description": "List of available applications.",
         "title": "Applications"
      },
      "project_list": {
         "anyOf": [
            {
               "items": {
                  "type": "string"
               },
               "type": "array"
            },
            {
               "type": "null"
            }
         ],
         "default": null,
         "description": "IDs of projects that the evaluator should work on, in order.",
         "title": "Project List"
      },
      "project_assignment_mode": {
         "anyOf": [
            {
               "type": "string"
            },
            {
               "type": "null"
            }
         ],
         "default": null,
         "description": "How the evaluator selects projects to work on. Options are: disabled, all_active, list.",
         "title": "Project Assignment Mode"
      },
      "context": {
         "anyOf": [
            {
               "$ref": "#/$defs/ContextUpdate"
            },
            {
               "type": "null"
            }
         ],
         "default": {
            "custom": {}
         },
         "description": "Runtime properties to pass to executed tasks."
      }
   },
   "$defs": {
      "ApplicationInfo": {
         "properties": {
            "name": {
               "description": "Application name.",
               "title": "Name",
               "type": "string"
            },
            "version": {
               "description": "Application version.",
               "title": "Version",
               "type": "string"
            },
            "install_path": {
               "description": "Installation path of the application.",
               "title": "Install Path",
               "type": "string"
            },
            "executable": {
               "description": "Executable path to run the application.",
               "title": "Executable",
               "type": "string"
            },
            "environment": {
               "anyOf": [
                  {
                     "type": "object"
                  },
                  {
                     "type": "null"
                  }
               ],
               "default": null,
               "description": "Environment setup for the process.",
               "title": "Environment"
            },
            "capabilities": {
               "anyOf": [
                  {
                     "items": {
                        "type": "string"
                     },
                     "type": "array"
                  },
                  {
                     "type": "null"
                  }
               ],
               "default": null,
               "description": "Capabilities of the application.",
               "title": "Capabilities"
            },
            "customization_hook": {
               "anyOf": [
                  {
                     "type": "object"
                  },
                  {
                     "type": "null"
                  }
               ],
               "default": null,
               "description": "Custom hook dictionary for modifying the configuration before performing runs.",
               "title": "Customization Hook"
            }
         },
         "required": [
            "name",
            "version",
            "install_path",
            "executable"
         ],
         "title": "ApplicationInfo",
         "type": "object"
      },
      "ContextUpdate": {
         "properties": {
            "custom": {
               "anyOf": [
                  {
                     "additionalProperties": {
                        "anyOf": [
                           {
                              "type": "integer"
                           },
                           {
                              "type": "boolean"
                           },
                           {
                              "type": "string"
                           },
                           {
                              "type": "number"
                           },
                           {
                              "type": "null"
                           }
                        ]
                     },
                     "type": "object"
                  },
                  {
                     "type": "null"
                  }
               ],
               "default": {},
               "description": "Custom runtime properties.",
               "title": "Custom"
            }
         },
         "title": "ContextUpdate",
         "type": "object"
      },
      "EvaluatorResources": {
         "properties": {
            "num_cores": {
               "anyOf": [
                  {
                     "type": "integer"
                  },
                  {
                     "type": "null"
                  }
               ],
               "default": null,
               "description": "Number of cores.",
               "title": "Num Cores"
            },
            "platform": {
               "anyOf": [
                  {
                     "$ref": "#/$defs/PlatformEnum"
                  },
                  {
                     "type": "null"
                  }
               ],
               "default": null,
               "description": "Basic platform information. Options are ``'linux'`` and ``'windows'``."
            },
            "memory": {
               "anyOf": [
                  {
                     "type": "integer"
                  },
                  {
                     "type": "null"
                  }
               ],
               "default": null,
               "description": "Amount of RAM in bytes.",
               "title": "Memory"
            },
            "disk_space": {
               "anyOf": [
                  {
                     "type": "integer"
                  },
                  {
                     "type": "null"
                  }
               ],
               "default": null,
               "description": "Amount of disk space in bytes.",
               "title": "Disk Space"
            },
            "custom": {
               "anyOf": [
                  {
                     "additionalProperties": {
                        "anyOf": [
                           {
                              "type": "integer"
                           },
                           {
                              "type": "boolean"
                           },
                           {
                              "type": "string"
                           },
                           {
                              "type": "number"
                           },
                           {
                              "type": "null"
                           }
                        ]
                     },
                     "type": "object"
                  },
                  {
                     "type": "null"
                  }
               ],
               "default": {},
               "description": "Custom resource properties.",
               "title": "Custom"
            },
            "hpc_resources": {
               "anyOf": [
                  {
                     "$ref": "#/$defs/HpcResources"
                  },
                  {
                     "type": "null"
                  }
               ],
               "default": null
            }
         },
         "title": "EvaluatorResources",
         "type": "object"
      },
      "HpcResources": {
         "properties": {
            "num_cores_per_node": {
               "anyOf": [
                  {
                     "type": "integer"
                  },
                  {
                     "type": "null"
                  }
               ],
               "default": null,
               "description": "Number of cores per node.",
               "title": "Num Cores Per Node"
            },
            "num_gpus_per_node": {
               "anyOf": [
                  {
                     "type": "integer"
                  },
                  {
                     "type": "null"
                  }
               ],
               "default": null,
               "description": "Number of GPUs per node.",
               "title": "Num Gpus Per Node"
            },
            "exclusive": {
               "anyOf": [
                  {
                     "type": "boolean"
                  },
                  {
                     "type": "null"
                  }
               ],
               "default": null,
               "description": "Whether nodes are exclusive to a job. If ``False``, nodes are shared with other running jobs.",
               "title": "Exclusive"
            },
            "queue": {
               "anyOf": [
                  {
                     "type": "string"
                  },
                  {
                     "type": "null"
                  }
               ],
               "default": null,
               "description": "Scheduler's queue.",
               "title": "Queue"
            }
         },
         "title": "HpcResources",
         "type": "object"
      },
      "PlatformEnum": {
         "enum": [
            "windows",
            "linux",
            "darwin"
         ],
         "title": "PlatformEnum",
         "type": "string"
      },
      "TaskDirectoryCleanupEnum": {
         "enum": [
            "always",
            "on_success",
            "never"
         ],
         "title": "TaskDirectoryCleanupEnum",
         "type": "string"
      }
   }
}

Fields:
  • applications (List[ansys.hps.client.rms.models.ApplicationInfo] | None)

  • context (ansys.hps.client.rms.models.ContextUpdate | None)

  • evaluator_id (str | None)

  • id (str | None)

  • last_modified (datetime.datetime | None)

  • local_file_cache (bool | None)

  • local_file_cache_max_size (int | None)

  • loop_interval (float | None)

  • max_num_parallel_tasks (int | None)

  • name (str | None)

  • project_assignment_mode (str | None)

  • project_list (List[str] | None)

  • resources (ansys.hps.client.rms.models.EvaluatorResources | None)

  • task_directory_cleanup (ansys.hps.client.rms.models.TaskDirectoryCleanupEnum | None)

  • working_directory (str | None)

field applications: Optional[List[ApplicationInfo]] = []#

List of available applications.

field context: Optional[ContextUpdate] = {'custom': {}}#

Runtime properties to pass to executed tasks.

field evaluator_id: Optional[str] = None#

ID of the parent evaluator (read-only).

field id: Optional[str] = None#

Unique database ID (read-only).

field last_modified: Optional[datetime] = None#

Last modified time.

field local_file_cache: Optional[bool] = None#

Whether to configure a local file cache in the file tool.

field local_file_cache_max_size: Optional[int] = None#

Maximum allowed cache size in bytes.

field loop_interval: Optional[float] = None#

Number of seconds between each iteration of the evaluator’s main loop.

field max_num_parallel_tasks: Optional[int] = None#
field name: Optional[str] = None#

Update the name of the evaluator, which updates the registration.

field project_assignment_mode: Optional[str] = None#

How the evaluator selects projects to work on. Options are: disabled, all_active, list.

field project_list: Optional[List[str]] = None#

IDs of projects that the evaluator should work on, in order.

field resources: Optional[EvaluatorResources] = {'custom': {}}#
field task_directory_cleanup: Optional[TaskDirectoryCleanupEnum] = None#
field working_directory: Optional[str] = None#