Skip to content

JobProps

Properties for defining a Job.

See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-paidlc-job

Initializer

using AlibabaCloud.SDK.ROS.CDK.Paidlc;
new JobProps {
    object DisplayName,
    object JobSpecs,
    object JobType,
    object UserCommand,
    object WorkspaceId,
    object CodeSource = null,
    object DataSources = null,
    object Envs = null,
    object JobMaxRunningTimeMinutes = null,
    object Options = null,
    object Priority = null,
    object ResourceId = null,
    object Settings = null,
    object SuccessPolicy = null,
    object ThirdpartyLibDir = null,
    object ThirdpartyLibs = null,
    object UserVpc = null
};

Properties

Name Type Description
DisplayName object Property displayName: The name of the task is as follows: The name length does not exceed 256 characters.
JobSpecs object 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 object Property jobType: The type of job.
UserCommand object Property userCommand: Start commands of all nodes in the task.
WorkspaceId object Property workspaceId: Work space ID, how to get working space ID, see listworkSpaces.
CodeSource object 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 object Property dataSources: List of data source used for task operation.
Envs object Property envs: Environment variable configuration.
JobMaxRunningTimeMinutes object Property jobMaxRunningTimeMinutes: The longest running time is running, and the unit is minutes.
Options object 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 object 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 object Property resourceId: Resource group ID, optional parameter.
Settings object Property settings: Job settings.
SuccessPolicy object Property successPolicy: The successful strategy of distributed multi -machine tasks is currently only supported by TensorFlow's multi -machine task.
ThirdpartyLibDir object 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 object Property thirdpartyLibs: Python third-party library list to be installed.
UserVpc object Property userVpc: User VPC configuration.

DisplayNameRequired

public object DisplayName { get; set; }
  • Type: object

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 (-).


JobSpecsRequired

public object JobSpecs { get; set; }
  • Type: object

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.


JobTypeRequired

public object JobType { get; set; }
  • Type: object

Property jobType: The type of job.

Values: TFJob, PyTorchJob, XGBoostJob, OneFlowJob, ElasticBatch


UserCommandRequired

public object UserCommand { get; set; }
  • Type: object

Property userCommand: Start commands of all nodes in the task.


WorkspaceIdRequired

public object WorkspaceId { get; set; }
  • Type: object

Property workspaceId: Work space ID, how to get working space ID, see listworkSpaces.


CodeSourceOptional

public object CodeSource { get; set; }
  • Type: object

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.


DataSourcesOptional

public object DataSources { get; set; }
  • Type: object

Property dataSources: List of data source used for task operation.


EnvsOptional

public object Envs { get; set; }
  • Type: object

Property envs: Environment variable configuration.


JobMaxRunningTimeMinutesOptional

public object JobMaxRunningTimeMinutes { get; set; }
  • Type: object

Property jobMaxRunningTimeMinutes: The longest running time is running, and the unit is minutes.


OptionsOptional

public object Options { get; set; }
  • Type: object

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.


PriorityOptional

public object Priority { get; set; }
  • Type: object

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.


ResourceIdOptional

public object ResourceId { get; set; }
  • Type: object

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.


SettingsOptional

public object Settings { get; set; }
  • Type: object

Property settings: Job settings.


SuccessPolicyOptional

public object SuccessPolicy { get; set; }
  • Type: object

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.


ThirdpartyLibDirOptional

public object ThirdpartyLibDir { get; set; }
  • Type: object

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.


ThirdpartyLibsOptional

public object ThirdpartyLibs { get; set; }
  • Type: object

Property thirdpartyLibs: Python third-party library list to be installed.


UserVpcOptional

public object UserVpc { get; set; }
  • Type: object

Property userVpc: User VPC configuration.