JobProps
Properties for defining a Job
.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-paidlc-job
Initializer
import "github.com/alibabacloud-go/ros-cdk/alicloudroscdkpaidlc"
&alicloudroscdkpaidlc.JobProps {
DisplayName: interface{},
JobSpecs: interface{},
JobType: interface{},
UserCommand: interface{},
WorkspaceId: interface{},
CodeSource: interface{},
DataSources: interface{},
Envs: interface{},
JobMaxRunningTimeMinutes: interface{},
Options: interface{},
Priority: interface{},
ResourceId: interface{},
Settings: interface{},
SuccessPolicy: interface{},
ThirdpartyLibDir: interface{},
ThirdpartyLibs: interface{},
UserVpc: interface{},
}
Properties
Name | Type | Description |
---|---|---|
DisplayName |
interface{} |
Property displayName: The name of the task is as follows: The name length does not exceed 256 characters. |
JobSpecs |
interface{} |
Property jobSpecs: Jobspecs describes various configurations of tasks during the mission, such as mirror address, start command, node resource statement, number of copies, etc. |
JobType |
interface{} |
Property jobType: The type of job. |
UserCommand |
interface{} |
Property userCommand: Start commands of all nodes in the task. |
WorkspaceId |
interface{} |
Property workspaceId: Work space ID, how to get working space ID, see listworkSpaces. |
CodeSource |
interface{} |
Property codeSource: The code source used in this task.Before the mission node starts, the DLC will automatically download the code configured in the code source, and mount to the local directory of the container. |
DataSources |
interface{} |
Property dataSources: List of data source used for task operation. |
Envs |
interface{} |
Property envs: Environment variable configuration. |
JobMaxRunningTimeMinutes |
interface{} |
Property jobMaxRunningTimeMinutes: The longest running time is running, and the unit is minutes. |
Options |
interface{} |
Property options: The additional configuration of this task can adjust some of the behavior of the mounting data source through this parameter.If the task has a data source that mounted the OSS type, you can cover the default parameters of the jinofs by configure the configuration of this parameter to fs.OSS.DOWNLOAD.CONCURRENCY = 4, fs.oss.download.queue.size = 16. |
Priority |
interface{} |
Property priority: The priority of the task, optional parameter, default value 1, the range of parameter values is 1 ~ 9.in: 1 is the minimum priority. 9 is the highest priority. |
ResourceId |
interface{} |
Property resourceId: Resource group ID, optional parameter. |
Settings |
interface{} |
Property settings: Job settings. |
SuccessPolicy |
interface{} |
Property successPolicy: The successful strategy of distributed multi -machine tasks is currently only supported by TensorFlow's multi -machine task. |
ThirdpartyLibDir |
interface{} |
Property thirdpartyLibDir: The name folder of the Requirements.txt file is located; before each node runs the specified usercommand, PAI -DLC will take the requirements.txt file from the specified folder and call the PIP Install -R installation. |
ThirdpartyLibs |
interface{} |
Property thirdpartyLibs: Python third-party library list to be installed. |
UserVpc |
interface{} |
Property userVpc: User VPC configuration. |
DisplayName
Required
DisplayName interface{}
- Type: interface{}
Property displayName: The name of the task is as follows: The name length does not exceed 256 characters.
Allow numbers, letters, lower strokes (_), English period (.) And short horizontal lines (-).
JobSpecs
Required
JobSpecs interface{}
- Type: interface{}
Property jobSpecs: Jobspecs describes various configurations of tasks during the mission, such as mirror address, start command, node resource statement, number of copies, etc.
The DLC task consists of different types of nodes. The same type of nodes have exactly the same configuration. This configuration is called a Jobspec. Jobspecs describes the configuration of all types of nodes and is the array of Jobspec.
JobType
Required
JobType interface{}
- Type: interface{}
Property jobType: The type of job.
Values: TFJob, PyTorchJob, XGBoostJob, OneFlowJob, ElasticBatch
UserCommand
Required
UserCommand interface{}
- Type: interface{}
Property userCommand: Start commands of all nodes in the task.
WorkspaceId
Required
WorkspaceId interface{}
- Type: interface{}
Property workspaceId: Work space ID, how to get working space ID, see listworkSpaces.
CodeSource
Optional
CodeSource interface{}
- Type: interface{}
Property codeSource: The code source used in this task.Before the mission node starts, the DLC will automatically download the code configured in the code source, and mount to the local directory of the container.
DataSources
Optional
DataSources interface{}
- Type: interface{}
Property dataSources: List of data source used for task operation.
Envs
Optional
Envs interface{}
- Type: interface{}
Property envs: Environment variable configuration.
JobMaxRunningTimeMinutes
Optional
JobMaxRunningTimeMinutes interface{}
- Type: interface{}
Property jobMaxRunningTimeMinutes: The longest running time is running, and the unit is minutes.
Options
Optional
Options interface{}
- Type: interface{}
Property options: The additional configuration of this task can adjust some of the behavior of the mounting data source through this parameter.If the task has a data source that mounted the OSS type, you can cover the default parameters of the jinofs by configure the configuration of this parameter to fs.OSS.DOWNLOAD.CONCURRENCY = 4, fs.oss.download.queue.size = 16.
Priority
Optional
Priority interface{}
- Type: interface{}
Property priority: The priority of the task, optional parameter, default value 1, the range of parameter values is 1 ~ 9.in: 1 is the minimum priority. 9 is the highest priority.
ResourceId
Optional
ResourceId interface{}
- Type: interface{}
Property resourceId: Resource group ID, optional parameter.
The parameter value is empty indicating that submitted to the public resource group. If the current working space has been bound to a proprietary resource group, you can specify the corresponding resource group ID here; how to create a proprietary resource group and inquire about the proprietary resource group ID, please refer to the preparation and management of the DLC resource group cluster.
Settings
Optional
Settings interface{}
- Type: interface{}
Property settings: Job settings.
SuccessPolicy
Optional
SuccessPolicy interface{}
- Type: interface{}
Property successPolicy: The successful strategy of distributed multi -machine tasks is currently only supported by TensorFlow's multi -machine task.
ChiefWorker: When it is specified as this value, as long as the Chief's POD is successful, it is considered that the entire task is successful. All workers: All workers must be successful to think that the entire task is successful.
ThirdpartyLibDir
Optional
ThirdpartyLibDir interface{}
- Type: interface{}
Property thirdpartyLibDir: The name folder of the Requirements.txt file is located; before each node runs the specified usercommand, PAI -DLC will take the requirements.txt file from the specified folder and call the PIP Install -R installation.
ThirdpartyLibs
Optional
ThirdpartyLibs interface{}
- Type: interface{}
Property thirdpartyLibs: Python third-party library list to be installed.
UserVpc
Optional
UserVpc interface{}
- Type: interface{}
Property userVpc: User VPC configuration.